Skip to content

Commit ddb2932

Browse files
committed
correct new parsed
1 parent a916bca commit ddb2932

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Data/Attoparsec/ByteString/Streaming.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ parsed parser = begin
132132
Chunk bs p1 | B.null bs -> begin p1
133133
| otherwise -> step (chunk bs >>) (A.parse parser bs) p1
134134
step diffP res p0 = case res of
135-
A.Fail _ c m -> Return (Left ((m,c), diffP p0))
135+
A.Fail _ c m -> Return (Left ((c,m), diffP p0))
136136
A.Done bs a | B.null bs -> Step (a :> begin p0)
137137
| otherwise -> Step (a :> begin (chunk bs >> p0))
138138
A.Partial k -> do

0 commit comments

Comments
 (0)