Closed freakingawesome closed 8 years ago
Some parsers, like while or many can return Ok without consuming any input. When such a parser is used as the input to many, the program will fail to halt. Here is a contrived example that will not halt:
while
many
Ok
parse (many <| while ((/=) 'c')) "abc"
Thanks for reporting and fixing the issue! :)
I've published version 2.0.1 of the package with your fix.
2.0.1
Some parsers, like
while
ormany
can returnOk
without consuming any input. When such a parser is used as the input tomany
, the program will fail to halt. Here is a contrived example that will not halt: