| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Fold.Types
Synopsis
- data Fold a b
- data NonemptyFold a b
- data EffectfulFold m a b
- data ShortcutFold a b
- data ShortcutNonemptyFold a b
Documentation
Processes inputs of type a and results in a value of type b
data NonemptyFold a b Source #
Processes at least one input of type a and results in a value of type b
Instances
data EffectfulFold m a b Source #
Processes inputs of type a and results in an effectful value of type m b
Instances
data ShortcutFold a b Source #
Processes inputs of type a, has the ability to halt midway
through the stream, and results in a value of type b
Instances
data ShortcutNonemptyFold a b Source #
Processes at least one input of type a, has the ability to halt
midway through the stream, and results in a value of type b