2

I am trying to write a bytestring parser with Attoparsec and I've been running into some puzzling behavior with the atEnd function. Just playing around, I tried to parse the empty bytestring with atEnd to see if it would return True, but instead it returns a partial parse. Is this expected? Can someone quickly explain the behavior of the atEnd function?

Cirdec
  • 24,019
  • 2
  • 50
  • 100
Frank Wang
  • 181
  • 9
  • 1
    Have you seen this? http://stackoverflow.com/questions/14287237/why-do-i-see-partial-results-with-attoparsec-when-i-expect-to-see-failure Try using `parseOnly` when testing it in GHCi maybe. – danem Mar 27 '15 at 18:34
  • @FrankWang Could we close this question as a duplicate of the one danem linked to in his/her comment? – jub0bs Jun 12 '15 at 19:59

0 Answers0