Convert textual representation of TOML into user data type by the
provided codec.
Moduletomland-1.3.3.3Haskell2010
Toml.Codec.Code
SPDX-License-Identifier : MPL-2.0 Maintainer : Kowainik xrom.xkov@gmail.com Stability : Stable Portability : Portable
Conversion from textual representation of TOML values to the Haskell data
types by the given TomlCodec.
This module includes coding functions like decode and encode.
- 10 values
- Packagetomland-1.3.3.3
- Exports10
- LanguageHaskell2010
- LicenceMPL-2.0
- SourceCode.hs
Decode
6 declarationsConvert textual representation of TOML into user data type by the
provided codec.
Unlike decode, this function returns NotExactDecode error in case if given
TOML has redundant fields and other elements.
Convert textual representation of TOML into user data type by the
provided codec.
Similar to decode, but takes a path to a file with textual TOML
values from which it decodes them with the provided codec.
Similar to decodeFileEither, throws LoadTomlException in case of parse errors (TomlDecodeError).
Similar to decodeExact, but takes a path to a file with textual TOML
values from which it decodes them with the provided codec.
Encode
2 declarationsConvert data type to the textual representation of TOML values.
Convert data type to the textual representation of TOML values.
and write it info the given file.
Run
2 declarationsConvert toml into user data type.
Runs codecWrite of TomlCodec and returns intermediate TOML AST.