Fix SeqEmpty in Text.Lexer.Core.

This commit is contained in:
Matus Tejiscak 2020-03-28 15:02:08 +01:00
parent 2938e86421
commit d819bf5a9d

View File

@ -137,7 +137,7 @@ scan (SeqEat r1 r2) tok str
assert_total (scan r2 tok' rest)
scan (SeqEmpty r1 r2) tok str
= do (tok', rest) <- scan r1 tok str
scan r2 tok' str
scan r2 tok' rest
scan (Alt r1 r2) tok str
= maybe (scan r2 tok str) Just (scan r1 tok str)