We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a916bca commit ddb2932Copy full SHA for ddb2932
1 file changed
Data/Attoparsec/ByteString/Streaming.hs
@@ -132,7 +132,7 @@ parsed parser = begin
132
Chunk bs p1 | B.null bs -> begin p1
133
| otherwise -> step (chunk bs >>) (A.parse parser bs) p1
134
step diffP res p0 = case res of
135
- A.Fail _ c m -> Return (Left ((m,c), diffP p0))
+ A.Fail _ c m -> Return (Left ((c,m), diffP p0))
136
A.Done bs a | B.null bs -> Step (a :> begin p0)
137
| otherwise -> Step (a :> begin (chunk bs >> p0))
138
A.Partial k -> do
0 commit comments