git.iko.soy/typeable/pandoc
on master help sign in
ghc 7.10.1 RC1 requires specifying the type of String literals https://ghc.haskell.org/trac/ghc/wiki/Migration/7.10#GHCsaysNoinstanceforFoldable...arisingfromtheuseof...
4e3281cMark Wright
src/Text/Pandoc/Writers/ConTeXt.hs+1−1
@@ -119,7 +119,7 @@ stringToConTeXt opts = concatMap (escapeCharForConTeXt opts)
119toLabel :: String -> String
119toLabel :: String -> String
120toLabel z = concatMap go z
120toLabel z = concatMap go z
121 where go x
121 where go x
122− | elem x "\\#[]\",{}%()|=" = "ux" ++ printf "%x" (ord x)
122+ | elem x ("\\#[]\",{}%()|=" :: String) = "ux" ++ printf "%x" (ord x)
123 | otherwise = [x]
123 | otherwise = [x]
124
124
125-- | Convert Elements to ConTeXt
125-- | Convert Elements to ConTeXt