HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

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

TOML

TomlCodec

Bool

a = true

bool

"a"

Integer

a = 100

integer

"a"

Int

a = -42

int

"a"

Natural

a = 11

natural

"a"

Word

a = 1

word

"a"

Word8

a = 1

word8

"a"

Double

a = 36.6

double

"a"

Float

a = -100.09

float

"a"

String

a = "Hello"

string

"a"

Text

a = "Hello"

text

"a"

Lazy

Text

a = "Hey"

lazyText

"a"

ByteString

a = "Hello"

byteString

"a"

Lazy

ByteString

a = "Hey"

lazyByteString

"a"

ByteString

as Array

a = [10, 15]

byteStringArray

"a"

Lazy

ByteString

as Array

a = [15, 10]

lazyByteStringArray

"a"

Contents
  1. Boolean
  2. Integral numbers
  3. Floating point numbers
  4. Text types
Synopsis
  • Packagetomland-1.3.3.3
  • Exports15
  • LanguageHaskell2010
  • LicenceMPL-2.0
  • SourcePrimitive.hs

Boolean

Integral numbers

Floating point numbers

Text types