Safe Haskell | Safe |
---|---|
Language | Haskell98 |
A generic extracting predicate.
Documentation
A predicate checks if the given element satisfies some properties
and extracts its attribute values. You can compose predicates using
Functor, Applicative and Alternative operators: *>
, <*
, <|>
etc.
Note, that it doesn't really have sense to use function like many
or some
, since the extracting predicate doesn't consume any input.