| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Text.Toml.Types
Synopsis
- 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.
Constructors
| VTable Table | |
| VTArray VTArray | |
| VString Text | |
| VInteger Int64 | |
| VFloat Double | |
| VBoolean Bool | |
| VDatetime UTCTime | |
| VArray VArray |
Instances
data Explicitness Source #
To mark whether or not a Table has been explicitly defined.
See: https://github.com/toml-lang/toml/issues/376
Instances
| Eq Explicitness Source # | |
Defined in Text.Toml.Types | |
| Show Explicitness Source # | |
Defined in Text.Toml.Types Methods showsPrec :: Int -> Explicitness -> ShowS # show :: Explicitness -> String # showList :: [Explicitness] -> ShowS # | |
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 #