@@ -343,16 +343,16 @@ notFollowedBy' p = try $ join $ do a <- try p
343-- (This version due to Andrew Pimlott on the Haskell mailing list.)
343-- (This version due to Andrew Pimlott on the Haskell mailing list.)
345oneOfStrings' :: Stream s m Char => (Char -> Char -> Bool) -> [String] -> ParserT s st m String
345oneOfStrings' :: Stream s m Char => (Char -> Char -> Bool) -> [String] -> ParserT s st m String
346−oneOfStrings' _ [] = fail "no strings"
346+oneOfStrings' _ [] = Prelude.fail "no strings"
347oneOfStrings' matches strs = try $ do
347oneOfStrings' matches strs = try $ do
348 c <- anyChar
348 c <- anyChar
349 let strs' = [xs | (x:xs) <- strs, x `matches` c]
349 let strs' = [xs | (x:xs) <- strs, x `matches` c]
350 case strs' of
350 case strs' of
351− [] -> fail "not found"
351+ [] -> Prelude.fail "not found"
352 _ -> (c:) <$> oneOfStrings' matches strs'
352 _ -> (c:) <$> oneOfStrings' matches strs'
353 <|> if "" `elem` strs'
353 <|> if "" `elem` strs'
354 then return [c]
354 then return [c]
355− else fail "not found"
355+ else Prelude.fail "not found"
357-- | Parses one of a list of strings. If the list contains
357-- | Parses one of a list of strings. If the list contains
358-- two strings one of which is a prefix of the other, the longer
358-- two strings one of which is a prefix of the other, the longer
@@ -525,7 +525,7 @@ romanNumeral upperCase = do
525 hundreds + nineties + fifties + forties + tens + nines +
525 hundreds + nineties + fifties + forties + tens + nines +
526 fives + fours + ones
526 fives + fours + ones
527 if total == 0
527 if total == 0
528− then fail "not a roman numeral"
528+ then Prelude.fail "not a roman numeral"
529 else return total
529 else return total
531-- Parsers for email addresses and URIs
531-- Parsers for email addresses and URIs
@@ -698,7 +698,7 @@ characterReference = try $ do
698 _ -> ent ++ ";"
698 _ -> ent ++ ";"
699 case lookupEntity ent' of
699 case lookupEntity ent' of
700 Just (c : _) -> return c
700 Just (c : _) -> return c
701− _ -> fail "entity not found"
701+ _ -> Prelude.fail "entity not found"
703-- | Parses an uppercase roman numeral and returns (UpperRoman, number).
703-- | Parses an uppercase roman numeral and returns (UpperRoman, number).
704upperRoman :: Stream s m Char => ParserT s st m (ListNumberStyle, Int)
704upperRoman :: Stream s m Char => ParserT s st m (ListNumberStyle, Int)
@@ -1312,7 +1312,7 @@ failIfInQuoteContext :: (HasQuoteContext st m, Stream s m t)
1312 -> ParserT s st m ()
1312 -> ParserT s st m ()
1313failIfInQuoteContext context = do
1313failIfInQuoteContext context = do
1314 context' <- getQuoteContext
1314 context' <- getQuoteContext
1315− when (context' == context) $ fail "already inside quotes"
1315+ when (context' == context) $ Prelude.fail "already inside quotes"
1317charOrRef :: Stream s m Char => String -> ParserT s st m Char
1317charOrRef :: Stream s m Char => String -> ParserT s st m Char
1318charOrRef cs =
1318charOrRef cs =