[Haskell-cafe] What is the point of many and some functions in
Control.Applicative (for Alternative?)
Philippa Cowderoy
flippa at flippac.org
Sat Jul 3 17:27:08 EDT 2010
On 03/07/2010 21:11, Stephen Tetley wrote:
> For an applicative parser - many is the same combinator as Parsec's
> many and some is many1.
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
Except that there may be good reason to use a version of many specific
to the parser, for example to try to keep the grammar finite and thus
easier to analyse, or to play nicely with empty string parses.
--
flippa at flippac.org
More information about the Haskell-Cafe
mailing list