Copyright | (c) 2018-2019 Kowainik |
---|---|
License | MPL-2.0 |
Maintainer | Kowainik <xrom.xkov@gmail.com> |
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.Generic
module Toml.Parser
module Toml.PrefixTree
module Toml.Printer
module Toml.Type