Skip to content

Commit

Permalink
Reverse the result of parsing a leftover bytestring
Browse files Browse the repository at this point in the history
I don't know if this is the most efficient way to do it, or if there's a
way to accumulate the list in the correct order in the first place
  • Loading branch information
commandodev authored and Ben Ford committed Jan 30, 2012
1 parent cfb79fb commit 987b36a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion attoparsec-conduit/Data/Conduit/Attoparsec.hs
Expand Up @@ -108,7 +108,7 @@ conduitParser p0 = C.conduitState
push parser c = {-# SCC "push" #-} do
case doParse parser c [] of
Left pErr -> lift $ C.resourceThrow pErr
Right (cont, results) -> return (cont, C.Producing results)
Right (cont, results) -> return (cont, C.Producing $ reverse results)

-- doParse :: (A.Parser a b) -> a -> [b]
-- -> Either ParseError ((a -> A.IResult a b), [b])
Expand Down

0 comments on commit 987b36a

Please sign in to comment.