Copyright | (c) Fumiaki Kinoshita 2017 |
---|---|
License | BSD3 |
Maintainer | Fumiaki Kinoshita <fumiexcel@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Data.Extensible.Record
Description
Bidirectional conversion from/to records
Documentation
The class of types that can be converted to/from a Record
.
Minimal complete definition
record :: (IsRecord a, Functor f, Profunctor p) => Optic' p f a (Record (RecFields a)) #
record :: IsRecord a => Iso' a (Record (RecFields a))
deriveIsRecord :: Name -> DecsQ #
Create an IsRecord
instance for a normal record declaration.