| Copyright | (C) 2017 Csongor Kiss |
|---|---|
| License | BSD3 |
| Maintainer | Csongor Kiss <kiss.csongor.kiss@gmail.com> |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Data.Generics.Product.Typed
Description
Derive record field getters and setters generically.
Lenses
Methods
A lens that focuses on a field with a unique type in its parent type.
Compatible with the lens package's Lens type.
>>>human ^. typed @Int50
Get field at type
Set field at type
Internals
As HasType but over generic representations as defined by
GHC.Generics.
Minimal complete definition