ghc 7.10.1 RC1 requires specifying the type of String literals https://ghc.haskell.org/trac/ghc/wiki/Migration/7.10#GHCsaysNoinstanceforFoldable...arisingfromtheuseof...
This commit is contained in:
parent
e4c7894d01
commit
8b9bded796
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ toLabel z = go `fmap` stringToLaTeX URLString z
|
|||
where go [] = ""
|
||||
go (x:xs)
|
||||
| (isLetter x || isDigit x) && isAscii x = x:go xs
|
||||
| elem x "-+=:;." = x:go xs
|
||||
| elem x ("-+=:;." :: String) = x:go xs
|
||||
| otherwise = "ux" ++ printf "%x" (ord x) ++ go xs
|
||||
|
||||
-- | Puts contents into LaTeX command.
|
||||
|
|
Loading…
Add table
Reference in a new issue