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
cd5b1fe5e3
commit
4e3281c550
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ stringToConTeXt opts = concatMap (escapeCharForConTeXt opts)
|
|||
toLabel :: String -> String
|
||||
toLabel z = concatMap go z
|
||||
where go x
|
||||
| elem x "\\#[]\",{}%()|=" = "ux" ++ printf "%x" (ord x)
|
||||
| elem x ("\\#[]\",{}%()|=" :: String) = "ux" ++ printf "%x" (ord x)
|
||||
| otherwise = [x]
|
||||
|
||||
-- | Convert Elements to ConTeXt
|
||||
|
|
Loading…
Add table
Reference in a new issue