tomland-1.2.1.0: Bidirectional TOML serialization
Copyright(c) 2018-2019 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Toml

Description

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 TomlCodec could be written in the following way:

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.Type