Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type Lens s t a b = forall f. Functor f => (a -> f b) -> s -> f t
- type Lens' s a = Lens s s a a
- lens :: (s -> a) -> (s -> b -> t) -> Lens s t a b
- type Iso s t a b = forall p f. (Profunctor p, Functor f) => p a (f b) -> p s (f t)
- type Iso' s a = Iso s s a a
- iso :: (s -> a) -> (b -> t) -> Iso s t a b
- type Traversal s t a b = forall f. Applicative f => (a -> f b) -> s -> f t
- _Fst :: forall a x a'. Lens (a, x) (a', x) a a'
- _Snd :: forall x b b'. Lens (x, b) (x, b') b b'
Documentation
type Iso s t a b = forall p f. (Profunctor p, Functor f) => p a (f b) -> p s (f t) Source #
isomorphism type synonym
type Traversal s t a b = forall f. Applicative f => (a -> f b) -> s -> f t Source #
traversal type synonym