Toml.Parser.Value

tomland-1.3.3.3: Bidirectional TOML serialization

Copyright | (c) 2018-2022 Kowainik
License | MPL-2.0
Maintainer | Kowainik <xrom.xkov@gmail.com>
Stability | Stable
Portability | Portable
Safe Haskell | None
Language | Haskell2010

Toml.Parser.Value

Description

Parser for `UValue`.

Synopsis

- arrayP :: Parser [UValue]
- boolP :: Parser Bool
- dateTimeP :: Parser UValue
- doubleP :: Parser Double
- integerP :: Parser Integer
- valueP :: Parser UValue
- anyValueP :: Parser AnyValue

# Documentation

arrayP :: Parser [UValue] #

Parser for array of values. This parser tries to parse first element of array, pattern-matches on this element and uses parser according to this first element. This allows to prevent parsing of heterogeneous arrays.

boolP :: Parser Bool #

Parser for `Bool` value.

dateTimeP :: Parser UValue #

Parser for datetime values.

doubleP :: Parser Double #

Parser for `Double` value.

integerP :: Parser Integer #

Parser for `Integer` value.

valueP :: Parser UValue #

Parser for `UValue`.

anyValueP :: Parser AnyValue #

Uses `valueP` and typechecks it.