Stability | experimental |
---|---|
Maintainer | Aleksey Kliger |
Safe Haskell | Safe-Inferred |
Some utilities for working with Folds.
If you are using lens, you don't need this module.
Documentation
type Fold s a = forall f. (Contravariant f, Applicative f) => (a -> f a) -> s -> f sSource
type Traversal' s a = forall f. Applicative f => (a -> f a) -> s -> f sSource
filtered :: (a -> Bool) -> Traversal' a aSource
justFiltered :: (a -> Maybe b) -> Fold a bSource