purescript-contrib/purescript-parsing

empty string parser consumed?

jamesdbrock opened this issue · 1 comments

This applies to the previous implementation as well, but if passed the empty string won't this mark the input as consumed without actually consuming anything?

This is not feedback, just a discussion point.

Originally posted by @robertdp in #119 (comment)

I think consuming an empty string match is actually the correct behavior, because “consumed” really means “we want to commit to this alternative branch.”