aslatter/parsec — pull request #3 by Daniel-Diaz (2014-05-12 17:20:25+00:00)
Title: Support for CRLF line breaks

I - as many others - write parsers that run on different systems. Windows uses CRLF line breaks while Unix uses just LF. Currently, the ``newline`` parser only succeeds for LF line breaks. This leads to parsers that fail on one system but not the other, which is annoying.

In my software, I frequently add the parsers I have attached in this pull request. I thought that they may be useful for other users of parsec. Basically, I am just adding CRLF line break support and a ``anyNewline`` parser, which succeeds for both LF and CRLF line breaks.

If there is any concern about the names, they can be modified.