Codec for boolean values.
Moduletomland-1.3.3.3Haskell2010
Toml.Codec.Combinator.Primitive
SPDX-License-Identifier : MPL-2.0 Maintainer : Kowainik xrom.xkov@gmail.com Stability : Stable Portability : Portable
TOML-specific combinators for converting between TOML and Haskell primitive types, e.g. Int, ByteString.
For the overall picture you can see how different types are represented by codecs in the following table:
Haskell Type |
| |
|---|---|---|
| "a" | |
| "a" | |
| "a" | |
| "a" | |
| "a" | |
| "a" | |
| "a" | |
| "a" | |
| "a" | |
| "a" | |
Lazy |
| "a" |
| "a" | |
Lazy |
| "a" |
as Array |
| "a" |
Lazy as Array |
| "a" |
Synopsis
- value bool
- value integer
- value int
- value natural
- value word
- value word8
- value double
- value float
- value string
- value text
- value lazyText
- value byteString
- value lazyByteString
- value byteStringArray
- value lazyByteStringArray
- Packagetomland-1.3.3.3
- Exports15
- LanguageHaskell2010
- LicenceMPL-2.0
- SourcePrimitive.hs
Boolean
Integral numbers
Codec for integer values.
Codec for integer values.
Codec for natural values.
Codec for word values.
Codec for word8 values.
Floating point numbers
Codec for floating point values with double precision.
Codec for floating point values.
Text types
Codec for string values.
Codec for text values.
Codec for lazy text values.
Codec for text values as ByteString.
Codec for text values as ByteString.
Codec for positive integer array values as ByteString.
Codec for positive integer array values as lazy ByteString.