HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduletomland-1.3.3.3Haskell2010

Toml.Codec.Combinator.Monoid

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 Monoid wrapper data types. These codecs are especially handy when you are implementing the Partial Options Monoid pattern.

Haskell Type

TOML

TomlCodec

Default on missing field

All

a = true

all "a"

All True

Any

a = true

any "a"

Any False

Sum Int

a = 11

sum Toml.int "a"

Sum 0

Product Int

a = 11

product Toml.int "a"

Product 1

First Int

a = 42

first Toml.int "a"

First Nothing

Last Bool

a = true

last Toml.bool "a"

Last Nothing

  • 6 values
  • Packagetomland-1.3.3.3
  • Exports6
  • LanguageHaskell2010
  • LicenceMPL-2.0
  • SourceMonoid.hs

Codecs for Monoids

0 declarations

Bool wrappers

Num wrappers

Maybe wrappers