Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type Table = HashMap Text Node
- emptyTable :: Table
- type VTArray = Vector Table
- type VArray = Vector Node
- data Node
- data Explicitness
- isExplicit :: Explicitness -> Bool
- insert :: TomlM m => Explicitness -> ([Text], Node) -> Table -> Parser m Table
- throwParser :: (MonadPlus m, Alternative m, Ord e, MonadParsec e s m) => String -> m a
- type Toml = State (Set [Text])
- type TomlM m = MonadState (Set [Text]) m
- type Parser m a = MonadState (Set [Text]) m => ParsecT Void Text m a
Documentation
emptyTable :: Table Source #
Contruct an empty Table
.
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.
throwParser :: (MonadPlus m, Alternative m, Ord e, MonadParsec e s m) => String -> m a Source #