generalied elem/notElem in ghc 7.10 require some additional type signatures when using OverloadedStrings
This commit is contained in:
parent
6466dbc950
commit
9f14f51d63
2 changed files with 2 additions and 2 deletions
|
@ -483,7 +483,7 @@ iaMunge = (>>= munge)
|
|||
where
|
||||
munge c
|
||||
| isAsciiUpper c || isAsciiLower c || isNumber c = [c]
|
||||
| c `elem` "_-.\"" = [c]
|
||||
| c `elem` ("_-.\"" :: String) = [c]
|
||||
| isSpace c = []
|
||||
| otherwise = "&" ++ show (ord c) ++ ";"
|
||||
|
||||
|
|
|
@ -177,7 +177,7 @@ getSharedConvergenceSecret configdir = go (60 :: Int)
|
|||
v <- catchMaybeIO (readFile f)
|
||||
case v of
|
||||
Just s | "\n" `isSuffixOf` s || "\r" `isSuffixOf` s ->
|
||||
return $ takeWhile (`notElem` "\n\r") s
|
||||
return $ takeWhile (`notElem` ("\n\r" :: String)) s
|
||||
_ -> do
|
||||
threadDelaySeconds (Seconds 1)
|
||||
go (n - 1)
|
||||
|
|
Loading…
Add table
Reference in a new issue