GHC 7.10 fix due to BBP

This commit is contained in:
Andrew Gibiansky 2015-04-07 12:17:40 -07:00
parent b7205e86d0
commit 28149effb9

View File

@ -66,7 +66,7 @@ query str = do
urlEncode :: String -> String
urlEncode [] = []
urlEncode (ch:t)
| (isAscii ch && isAlphaNum ch) || ch `P.elem` "-_.~" = ch : urlEncode t
| (isAscii ch && isAlphaNum ch) || ch `P.elem` ("-_.~" :: String) = ch : urlEncode t
| not (isAscii ch) = P.foldr escape (urlEncode t) (eightBs [] (P.fromEnum ch))
| otherwise = escape (P.fromEnum ch) (urlEncode t)
where