ghc 7.10.1 RC1 requires specifying the type of String literals https://ghc.haskell.org/trac/ghc/wiki/Migration/7.10#GHCsaysNoinstanceforFoldable...arisingfromtheuseof...
commit4e3281c550727bfb30d4e23730433aedc2be3799
authorMark Wright <gienah@gentoo.org>
dateMon 5 Jan 2015, 14:41 (12 years ago)
parentcd5b1fe
src/Text/Pandoc/Writers/ConTeXt.hs+1−1
@@ -119,7 +119,7 @@ stringToConTeXt opts = concatMap (escapeCharForConTeXt opts)
119119toLabel :: String -> String
120120toLabel z = concatMap go z
121121 where go x
122− | elem x "\\#[]\",{}%()|=" = "ux" ++ printf "%x" (ord x)
122+ | elem x ("\\#[]\",{}%()|=" :: String) = "ux" ++ printf "%x" (ord x)
123123 | otherwise = [x]
124124
125125-- | Convert Elements to ConTeXt