toml is:module
This module reexports all functionality of the
tomland
package. It's recommended to import this module qualified, like this:
import Toml (TomlCodec, (.=))
import qualified Toml
Simple
TomlCodec for a Haskell value, that can be
decoded from TOML or encoded as TOML, 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
A value of such type will look in TOML like this:
name = Alice
age = 27
For more detailed examples see README.md in the repository:
For the details of the library implementation see blog post:
Type of TOML AST. This is intermediate representation of TOML parsed
from text.
This is the high-level interface to the toml-parser library. It
enables parsing, printing, and conversion into and out of
application-specific representations.
This parser implements TOML 1.0.0
https://toml.io/en/v1.0.0 as
carefully as possible.
Use
Toml.Schema to implement functions mapping between TOML
values and your application types.
Use
Toml.Syntax and
Toml.Semantics for low-level TOML
syntax processing and semantic validation. Most applications will not
need to use these modules directly unless the application is about
TOML itself.
The types and functions of this package are parameterized over an
annotation type in order to allow applications to provide detailed
feedback messages tracked back to specific source locations in an
original TOML file. While the default annotation is a simple file
position, some applications might upgrade this annotation to track
multiple file names or synthetically generated sources. Other
applications won't need source location and can replace annotations
with a simple unit type.
GtkCustomLayout uses closures for size negotiation.
A GtkCustomLayout uses closures matching to the old
GtkWidget virtual functions for size negotiation, as a
convenience API to ease the porting towards the corresponding
`GtkLayoutManager virtual functions.
Uses closures for size negotiation.
A GtkCustomLayout uses closures matching to the old
GtkWidget virtual functions for size negotiation, as a
convenience API to ease the porting towards the corresponding
GtkLayoutManager virtual functions.