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 |
Internal lens helpers. Only exported for Haddock
- newtype Identity a = Identity {
- runIdentity :: a
- type Lens' s a = forall f. Functor f => (a -> f a) -> s -> f s
- (^.) :: s -> ((a -> Const a a) -> s -> Const a s) -> a
- set :: ((a -> Identity b) -> s -> Identity t) -> b -> s -> t
- first :: Lens' ((a :*: b) x) (a x)
- second :: Lens' ((a :*: b) x) (b x)
- repIso :: Generic a => Lens' a (Rep a x)
- lensM :: Lens' (M1 i c f p) (f p)