CurryInfo: curry-interface-2.0.1 / CurryInterface.Parser.optional

definition:
optional :: Parser a -> Parser (Maybe a)
optional p = Just <$> p <|> yield Nothing
demand:
no demanded arguments
deterministic:
deterministic operation
documentation:
--- Tries to parse using the given parser or returns Nothing
failfree:
_
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_) |-> {<|>._#lambda6}}
name:
optional
precedence:
no precedence defined
result-values:
{<|>._#lambda6}
signature:
(String -> [(a, String)]) -> String -> [(Prelude.Maybe a, String)]
solution-complete:
operation might suspend on free variables
terminating:
yes
totally-defined:
reducible on all ground data terms