File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -282,12 +282,12 @@ consumeWith
282282 . (String -> Either String { value :: a , consumed :: String , remainder :: String } )
283283 -> ParserT String m a
284284consumeWith f = ParserT
285- ( mkFn5 \state1@(ParseState input pos _ ) _ _ throw done ->
285+ ( mkFn5 \state1@(ParseState input pos oldConsumed ) _ _ throw done ->
286286 case f input of
287287 Left err ->
288288 runFn2 throw state1 (ParseError err pos)
289289 Right { value, consumed, remainder } ->
290- runFn2 done (ParseState remainder (updatePosString pos consumed remainder) (not (String .null consumed))) value
290+ runFn2 done (ParseState remainder (updatePosString pos consumed remainder) (oldConsumed || not (String .null consumed))) value
291291 )
292292
293293-- | Combinator which finds the first position in the input `String` where the
You can’t perform that action at this time.
0 commit comments