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...