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.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

Contents
  1. Codecs for Monoids
  2. Bool wrappers
  3. Num wrappers
  4. Maybe wrappers
Synopsis
  • Packagetomland-1.3.3.3
  • Exports6
  • LanguageHaskell2010
  • LicenceMPL-2.0
  • SourceMonoid.hs

Codecs for Monoids

Bool wrappers

Num wrappers

Maybe wrappers