[Haskell-cafe] Splitting off many/some from Alternative

Gregory Crosswhite gcrosswhite at gmail.com
Wed Dec 14 06:51:46 CET 2011


On Dec 13, 2011, at 3:06 AM, Bryan O'Sullivan wrote:

> There is absolutely no implication of consuming anything in the definitions of many or some. This is how they happen to behave when used in the context of some parsing libraries, but that's all. If many or some always go into an infinite loop for some Alternative instance, then I suspect that the instance itself is either broken or shouldn't exist.

Yes of course, so I suppose my point was that when I thought about them in this way their purpose made sense for the first time.  :-)

Cheers,
Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20111214/a2679b5f/attachment.htm>


More information about the Haskell-Cafe mailing list