
2 Jun
2011
2 Jun
'11
2:02 p.m.
I often find while using attoparsec and attoparsec-text that I need to match a number of text parsers consecutively and concatenate the result. By "text parser" I mean "Parser ByteString" for attoparsec and "Parser Text" for attoparsec-text. It seems the best I can do is to collect them all in a list and then apply concat. But that still copies the text several times. Is there a combinator that does this without all that copying? If not, does the internal representation easily admit such a combinator? Thanks, Yitz