@@ -343,16 +343,16 @@ notFollowedBy' p = try $ join $ do a <- try p
343343-- (This version due to Andrew Pimlott on the Haskell mailing list.)
344344
345345oneOfStrings' :: Stream s m Char => (Char -> Char -> Bool) -> [String] -> ParserT s st m String
346−oneOfStrings' _ [] = fail "no strings"
346+oneOfStrings' _ [] = Prelude.fail "no strings"
347347oneOfStrings' matches strs = try $ do
348348 c <- anyChar
349349 let strs' = [xs | (x:xs) <- strs, x `matches` c]
350350 case strs' of
351− [] -> fail "not found"
351+ [] -> Prelude.fail "not found"
352352 _ -> (c:) <$> oneOfStrings' matches strs'
353353 <|> if "" `elem` strs'
354354 then return [c]
355− else fail "not found"
355+ else Prelude.fail "not found"
356356
357357-- | Parses one of a list of strings. If the list contains
358358-- two strings one of which is a prefix of the other, the longer
@@ -525,7 +525,7 @@ romanNumeral upperCase = do
525525 hundreds + nineties + fifties + forties + tens + nines +
526526 fives + fours + ones
527527 if total == 0
528− then fail "not a roman numeral"
528+ then Prelude.fail "not a roman numeral"
529529 else return total
530530
531531-- Parsers for email addresses and URIs
@@ -698,7 +698,7 @@ characterReference = try $ do
698698 _ -> ent ++ ";"
699699 case lookupEntity ent' of
700700 Just (c : _) -> return c
701− _ -> fail "entity not found"
701+ _ -> Prelude.fail "entity not found"
702702
703703-- | Parses an uppercase roman numeral and returns (UpperRoman, number).
704704upperRoman :: Stream s m Char => ParserT s st m (ListNumberStyle, Int)
@@ -1312,7 +1312,7 @@ failIfInQuoteContext :: (HasQuoteContext st m, Stream s m t)
13121312 -> ParserT s st m ()
13131313failIfInQuoteContext context = do
13141314 context' <- getQuoteContext
1315− when (context' == context) $ fail "already inside quotes"
1315+ when (context' == context) $ Prelude.fail "already inside quotes"
13161316
13171317charOrRef :: Stream s m Char => String -> ParserT s st m Char
13181318charOrRef cs =