CurryInfo: dimacs-3.0.0 / DetParser.star

definition:
star :: Parser token a -> Parser token [a]
star p = (\ts -> case p ts of
  Left e -> Left e
  Right (ts', x) -> (x:) <$> star p $ ts')
  <|> yield []
demand:
no demanded arguments
deterministic:
deterministic operation
documentation:
--- A star combinator for parsers. The returned parser
--- repeats zero or more times a parser p and
--- returns the representation of all parsers in a list.
failfree:
_
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_) |-> {<|>._#lambda4}}
name:
star
precedence:
no precedence defined
result-values:
{<|>._#lambda4}
signature:
([a] -> Prelude.Either String ([a], b)) -> [a]
-> Prelude.Either String ([a], [b])
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
reducible on all ground data terms