| 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
Contents
Description
Derive record field getters and setters generically.
- class HasType a s where
Lenses
Records that have a field with a unique type.
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.