definition: |
check :: (a -> Bool) -> Parser a -> Parser a check ok p = filter (ok . fst) . p |
demand: |
no demanded arguments |
deterministic: |
deterministic operation |
documentation: |
Builds a parser that succeeds if the predicate holds on the result of the original parser. |
failfree: |
(_, _) |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_,_) |-> {.._#lambda508}} |
name: |
check |
precedence: |
no precedence defined |
result-values: |
{.._#lambda508} |
signature: |
(a -> Prelude.Bool) -> (String -> [(a, String)]) -> String -> [(a, String)] |
solution-complete: |
operation might suspend on free variables |
terminating: |
yes |
totally-defined: |
reducible on all ground data terms |