HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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"

  • 15 values
  • Packagetomland-1.3.3.3
  • Exports15
  • LanguageHaskell2010
  • LicenceMPL-2.0
  • SourcePrimitive.hs

Boolean

1 declaration

Integral numbers

5 declarations

Floating point numbers

2 declarations

Text types

7 declarations