Fix bug in fallthrough parser

This commit is contained in:
2025-07-30 15:29:25 -04:00
parent 9d3d656065
commit 8152b89a23

View File

@@ -145,7 +145,7 @@ parseTillEol = manyTill anySingle (void (char '\n') <|> eof)
-- Takes a list of parsers. Returns a parser that will try them in
-- order, moving to the next one only if the current one fails.
fallthroughParser :: [Parser a] -> Parser a
fallthroughParser [x] = x
fallthroughParser [x] = try x
fallthroughParser (x : xs) = try x <|> fallthroughParser xs
escapeChar :: Char -> String