Multi-line *non* match with attoparsec
问题 I was playing around with parsing (PostgreSQL) logs which can have entries that are multi-line. 2016-01-01 01:01:01 entry1 2016-01-01 01:01:02 entry2a entry2b 2016-01-01 01:01:03 entry3 So - with a Perl or Python script I'd just grab the next line and if it wasn't starting with a timestamp append it to the previous log entry. What is a sensible way to approach this with attoparsec hooked up to io-streams ? I clearly want to do something with lookAhead and failing to match a timestamp but my