definition: |
parse :: Parser a -> String -> Maybe a parse p s = case filter (null . snd) $ p s of ((x, _):_) -> Just x _ -> Nothing |
demand: |
no demanded arguments |
deterministic: |
deterministic operation |
documentation: |
Applies a parser to a string. If it succeeds, returns the result of the parser. Returns `Nothing` if it does not. |
failfree: |
(_, _) |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_,_) |-> {Just,Nothing}} |
name: |
parse |
precedence: |
no precedence defined |
result-values: |
{Just,Nothing} |
signature: |
(String -> [(a, String)]) -> String -> Prelude.Maybe a |
solution-complete: |
operation might suspend on free variables |
terminating: |
yes |
totally-defined: |
reducible on all ground data terms |