Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type Table = HashMap Text Node
- emptyTable :: Table
- data Node
- data Explicitness
- isExplicit :: Explicitness -> Bool
- insert :: Explicitness -> ([Text], Node) -> Table -> Parsec Text (Set [Text]) Table
- class ToBsJSON a where
Documentation
Contruct an empty Table
.
VTable Table | |
VTArray [Table] | |
VString !Text | |
VInteger !Int64 | |
VFloat !Double | |
VBoolean !Bool | |
VDatetime !UTCTime | |
VArray [Node] |
Eq Node Source | |
Show Node Source | |
ToJSON Node Source |
|
ToBsJSON Node Source |
As seen in this function, BurntSushi's JSON encoding explicitly specifies the types of the values. |
data Explicitness Source
To mark whether or not a Table
has been explicitly defined.
See: https://github.com/toml-lang/toml/issues/376
isExplicit :: Explicitness -> Bool Source
Convenience function to get a boolean value.
Type class for conversion to BurntSushi-style JSON.
BurntSushi has made a language agnostic test suite available that
this library uses. This test suit expects that values are encoded
as JSON objects with a 'type' and a value
member.
ToBsJSON Node Source |
As seen in this function, BurntSushi's JSON encoding explicitly specifies the types of the values. |
ToBsJSON a => ToBsJSON [a] Source | Provide a |
ToBsJSON v => ToBsJSON (HashMap Text v) Source | Provide a |