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

Moduletoml-parser-2.0.0.0Haskell2010

Toml.Schema.Generic.FromValue

Generic implementations of matching tables and arrays.

  • 2 classes
  • 3 values

Record from table

3 declarations
classclass GParseTable (f :: Type -> Type) where
#

Supports conversion of TOML tables into record values using field selector names as TOML keys.

Methods

Instances6GParseTable
  • GParseTable U1Defined in toml-parser-2.0.0.0 · Toml.Schema.Generic.FromValue

    Emits empty table

  • GParseTable f => GParseTable (C1 ('MetaCons sym fix 'True) f)Defined in toml-parser-2.0.0.0 · Toml.Schema.Generic.FromValue

    Ignores value constructor name - only supports record constructors

  • GParseTable f => GParseTable (D1 c f)Defined in toml-parser-2.0.0.0 · Toml.Schema.Generic.FromValue

    Ignores type constructor name

  • (Selector s, FromValue a) => GParseTable (S1 s (K1 i (Maybe a)))Defined in toml-parser-2.0.0.0 · Toml.Schema.Generic.FromValue

    Omits the key from the table on nothing, includes it on just

  • (Selector s, FromValue a) => GParseTable (S1 s (K1 i a))Defined in toml-parser-2.0.0.0 · Toml.Schema.Generic.FromValue

    Uses record selector name as table key

  • (GParseTable f, GParseTable g) => GParseTable (f :*: g)Defined in toml-parser-2.0.0.0 · Toml.Schema.Generic.FromValue

    Matches left then right component

Product type from array

2 declarations
classclass GFromArray (f :: Type -> Type) where
#

Supports conversion of TOML arrays into product-type values.

Methods

Instances4GFromArray