Copyright | (C) 2017 Csongor Kiss |
---|---|
License | BSD3 |
Maintainer | Csongor Kiss <kiss.csongor.kiss@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Internal lens helpers. Only exported for Haddock
Synopsis
- type Lens' s a = Lens s s a a
- type Lens s t a b = forall f. Functor f => (a -> f b) -> s -> f t
- view :: ((a -> Const a a) -> s -> Const a s) -> s -> a
- (^.) :: s -> ((a -> Const a a) -> s -> Const a s) -> a
- (.~) :: ((a -> Identity b) -> s -> Identity t) -> b -> s -> t
- set :: Lens s t a b -> b -> s -> t
- lens2lensvl :: ALens a b s t -> Lens s t a b
- ravel :: (ALens a b a b -> ALens a b s t) -> Lens s t a b
- lens :: (s -> a) -> ((s, b) -> t) -> Lens s t a b
Documentation
lens2lensvl :: ALens a b s t -> Lens s t a b Source #