Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- duplicate :: Fold a b -> Fold a (Fold a b)
- premap :: (a -> b) -> Fold b r -> Fold a r
- prefilter :: (a -> Bool) -> Fold a r -> Fold a r
- predropWhile :: (a -> Bool) -> Fold a r -> Fold a r
- drop :: Natural -> Fold a b -> Fold a b
- nest :: Applicative f => Fold a b -> Fold (f a) (f b)
- repeatedly :: forall x xs result. (forall b. Fold x b -> xs -> b) -> Fold x result -> Fold xs result
Documentation
duplicate :: Fold a b -> Fold a (Fold a b) Source #
Allows to continue feeding a fold even after passing it to a function that closes it
premap :: (a -> b) -> Fold b r -> Fold a r Source #
Applies a function to each input before processing
prefilter :: (a -> Bool) -> Fold a r -> Fold a r Source #
Consider only inputs that match a predicate