| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Control.Lens.Selection
- selected :: Traversable f => Traversal' (Selection f b a) a
- unselected :: Traversable f => Traversal' (Selection f b a) b
- inverting :: Functor f => Iso' (Selection f b a) (Selection f a b)
- unwrapping :: Functor f => Iso' (Selection f b a) (f (Either b a))
Documentation
selected :: Traversable f => Traversal' (Selection f b a) a Source #
unselected :: Traversable f => Traversal' (Selection f b a) b Source #
Traversal over unselected elements
unselected=inverting.selected
inverting :: Functor f => Iso' (Selection f b a) (Selection f a b) Source #
Iso which inverts the current selection
inverting= isoinvertSelectioninvertSelection
unwrapping :: Functor f => Iso' (Selection f b a) (f (Either b a)) Source #
Iso which exposes the underlying functor representation
unwrapping= isounwrapSelectionwrapSelection