Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Test.Util.Classify
Contents
Description
Classification of lists of symbols
Intended for qualified import.
import qualified Test.Util.Classify as C
Documentation
Predicate over a list of a
s, using classification b
classify ∷ ∀ a b. [Predicate a b] → [a] → [b] Source #
Do a linear scan over the list, returning all successful classifications
predicate ∷ (a → Either b (Predicate a b)) → Predicate a b Source #
Construct simply predicate that returns Nothing
on termination