Copyright | (c) Henry J. Wylde 2016 |
---|---|
License | BSD3 |
Maintainer | public@hjwylde.com |
Safe Haskell | None |
Language | Haskell2010 |
Extra utility functions for working with lenses.
- module Control.Lens
- is :: Getting Any s a -> s -> Bool
- isn't :: Getting All s a -> s -> Bool
- hasuse :: MonadState s m => Getting Any s a -> m Bool
- hasn'tuse :: MonadState s m => Getting All s a -> m Bool
- filteredBy :: Eq b => Lens' a b -> b -> Traversal' a a
Documentation
module Control.Lens
Folds
Traversals
filteredBy :: Eq b => Lens' a b -> b -> Traversal' a a Source #
A companion to filtered
that, rather than using a predicate, filters on the given lens for
matches.