Copyright | (c) Fumiaki Kinoshita 2018 |
---|---|
License | BSD3 |
Maintainer | Fumiaki Kinoshita <fumiexcel@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Bidirectional conversion from/to records
Documentation
class IsRecord a where Source #
The class of types that can be converted to/from a Record
.
Nothing
recordFromList :: HList (Field Identity) (RecFields a) -> a Source #
recordToList :: a -> HList (Field Identity) (RecFields a) Source #
recordFromList :: (Generic a, GIsRecord (Rep a) '[], GRecFields (Rep a) '[] ~ RecFields a) => HList (Field Identity) (RecFields a) -> a Source #
recordToList :: (Generic a, GIsRecord (Rep a) '[], GRecFields (Rep a) '[] ~ RecFields a) => a -> HList (Field Identity) (RecFields a) Source #