Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module reexports all functionality of tomland
package. It's
recommended to import this module qualified, like this:
import Toml (TomlCodec, (.=)) import qualified Toml
Simple
could be written in the following way:TomlCodec
data User = User { userName :: Text , userAge :: Int } userCodec ::TomlCodec
User userCodec = User <$> Toml.text
"name".=
userName <*> Toml.int
"age".=
userAge
For more detailed examples see README.md in the repository:
For the details of the library implementation see blog post:
Documentation
module Toml.Bi
module Toml.Parser
module Toml.PrefixTree
module Toml.Printer
module Toml.Type