Copyright | (c) Fumiaki Kinoshita 2018 |
---|---|
License | BSD3 |
Maintainer | Fumiaki Kinoshita <[email protected]> |
Safe Haskell | None |
Language | Haskell2010 |
Data.Extensible.Record
Description
Bidirectional conversion from/to records
Documentation
class IsRecord a where Source #
The class of types that can be converted to/from a Record
.
Minimal complete definition
Nothing
Associated Types
Methods
recordFromList :: HList (Field Identity :: Assoc Symbol Type -> Type) (RecFields a) -> a Source #
default recordFromList :: (Generic a, GIsRecord (Rep a) ('[] :: [Assoc Symbol Type]), GRecFields (Rep a) ('[] :: [Assoc Symbol Type]) ~ RecFields a) => HList (Field Identity :: Assoc Symbol Type -> Type) (RecFields a) -> a Source #
recordToList :: a -> HList (Field Identity :: Assoc Symbol Type -> Type) (RecFields a) Source #
Instances
IsRecord () Source # | |||||
Defined in Data.Extensible.Record Associated Types
|