bos/attoparsec — Issue #10: Lazy parser fails
Author: basvandijk
Created: 2012-02-04 12:41:38+00:00
State: open

Hi Bryan,

I've written [a small attoparsec parser](https://gist.github.com/1737483) that when run on a strict text succeeds but when run on a lazy text errors.

The program parsers a textual Hoogle database as generated by `cabal haddock --hoogle`. I attached a modified hoogle DB of the base library to the gist.

Running the program using a strict text succeeds:

```
$ ./attoparsec-hoogle ./base.txt strict
OK
```

Running the program using a lazy text errors:

```
$ ./attoparsec-hoogle ./base.txt lazy
Error:
"-- | aaaaaaaaaa"
```

Now when I remove one of the a's in the input file the lazy parser succeeds. So I guess this has something to do with the chunking of a lazy text.