Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- selected :: Traversable f => Traversal (Selection f b a) (Selection f b a') a a'
- unselected :: Traversable f => Traversal (Selection f b a) (Selection f b' a) b b'
- inverted :: Functor f => Traversal (Selection f b a) (Selection f b' a') (Selection f a b) (Selection f a' b')
- unwrapped :: Traversal (Selection f b a) (Selection f b' a') (f (Either b a)) (f (Either b' a'))
Documentation
unselected :: Traversable f => Traversal (Selection f b a) (Selection f b' a) b b' Source #
Traversal over unselected elements
unselected
=inverting
.selected
inverted :: Functor f => Traversal (Selection f b a) (Selection f b' a') (Selection f a b) (Selection f a' b') Source #
Traversal which inverts the current selection
This is provided as a Traversal to avoid adding a profunctors
dependency.
You can write the corresponding iso if you wish:
inverting
= isoinvertSelection
invertSelection
unwrapped :: Traversal (Selection f b a) (Selection f b' a') (f (Either b a)) (f (Either b' a')) Source #
Traversal which exposes the underlying functor representation
This is provided as a Traversal to avoid adding a profunctors
dependency.
You can write the corresponding iso if you wish:
unwrapping
= isounwrapSelection
wrapSelection