Source

attoparsec / Data / Attoparsec / Internal / Types.hs

Author Commit Message Labels Comments Date
Bryan O'Sullivan
Try using Monoid everywhere
Max Bolingbroke
Fix bug in plus/<|> where added would be discarded if LHS succeeded
Bryan O'Sullivan
Unexport noAdds
solirc
Use LANGUAGE pragma This makes it more convenient to use GHCi.
John Millikin
Fix build in GHC 6.10. The functions 'many' and 'some' are not methods of class Alternative in base <= 4.1.
Bryan O'Sullivan
Fix up some docs.
Bryan O'Sullivan
Add support for the text package
John Millikin
Fix build in GHC 6.10. The functions (<*) and (*>) are not methods of class Applicative in base_4.1 or earlier.
Bryan O'Sullivan
Merge away the backtrack and status code
Bryan O'Sullivan
Back out 7de1dedc8889, the dread backtrack-ectomy
Bryan O'Sullivan
Failed experiment: add a Status type. This is an attempt to address a bug I introduced when I changed the semantics of the <|> operator, I introduced a bug. Consider the following parser: (char 'f' *> char 'i') <|> char 'o' When I got rid of backtracking, this parser would accept an input of "fo", which is clearly not desirable. The Status type rescues this somewhat: when any parser consumes input, it enters the Committed state.…
Bryan O'Sullivan
Switch from backtracking by default to *not* backtracking. This saves rather a lot of memory, and improves performance along the way.
Tags
0.9.0.0
Bryan O'Sullivan
Mark a few more definitions as inlined. The benefit here is a little dubious, since I see a tiny performance gain.
Bryan O'Sullivan
Factor internal types out into their own module.