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