Fix bug in fallthrough parser
This commit is contained in:
@@ -145,7 +145,7 @@ parseTillEol = manyTill anySingle (void (char '\n') <|> eof)
|
|||||||
-- Takes a list of parsers. Returns a parser that will try them in
|
-- 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.
|
-- order, moving to the next one only if the current one fails.
|
||||||
fallthroughParser :: [Parser a] -> Parser a
|
fallthroughParser :: [Parser a] -> Parser a
|
||||||
fallthroughParser [x] = x
|
fallthroughParser [x] = try x
|
||||||
fallthroughParser (x : xs) = try x <|> fallthroughParser xs
|
fallthroughParser (x : xs) = try x <|> fallthroughParser xs
|
||||||
|
|
||||||
escapeChar :: Char -> String
|
escapeChar :: Char -> String
|
||||||
|
Reference in New Issue
Block a user