Copyright | (c) Eric Mertens 2023 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Use genericParseTable
to derive a ParseTable
using the field names
of a record. This can be combined with parseTableFromValue
to derive a FromValue
instance.
Synopsis
- class GParseTable f where
- gParseTable :: (f a -> ParseTable b) -> ParseTable b
- genericParseTable :: (Generic a, GParseTable (Rep a)) => ParseTable a
Documentation
class GParseTable f where Source #
Supports conversion of product types with field selector names to TOML values.
Since: 1.0.2.0
gParseTable :: (f a -> ParseTable b) -> ParseTable b Source #
Convert a value and apply the continuation to the result.
Instances
genericParseTable :: (Generic a, GParseTable (Rep a)) => ParseTable a Source #
Match a Table
using the field names in a record.
Since: 1.2.0.0