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 |
Derive record field getters and setters generically.
- class HasType a s where
Lenses
Records that have a field with a unique type.
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 @Int
50
Get field at type.
Set field at type.