Haskell Language Attoparsec


Attoparsec is a parsing combinator library that is "aimed particularly at dealing efficiently with network protocols and complicated text/binary file formats".

Attoparsec offers not only speed and efficiency, but backtracking and incremental input.

Its API closely mirrors that of another parser combinator library, Parsec.

There are submodules for compatibility with ByteString, Text and Char8. Use of the OverloadedStrings language extension is recommended.


Parser i aThe core type for representing a parser. i is the string type, e.g. ByteString.
IResult i rThe result of a parse, with Fail i [String] String, Partial (i -> IResult i r) and Done i r as constructors.