git.iko.soy/typeable/pandoc
on master help sign in
ghc 7.10.1 RC1 requires FlexibleContexts https://ghc.haskell.org/trac/ghc/wiki/Migration/7.10#Inferredtype-signaturesnowmayrequiretoenableFlexibleContextsGADTsorTypeFamilies ; ghc 7.10.1 RC1 requires specifying the type of String literals https://ghc.haskell.org/trac/ghc/wiki/Migration/7.10#GHCsaysNoinstanceforFoldable...arisingfromtheuseof...
commitb748833889dcf21cbe2f418838abb423b565079d authorMark Wright <gienah@gentoo.org> dateMon 5 Jan 2015, 14:40 (12 years ago) parent10d5398
1 file changed+2−1
src/Text/Pandoc/Readers/RST.hs+2−1
src/Text/Pandoc/Readers/RST.hs+2−1
@@ -1,4 +1,5 @@
11{-# LANGUAGE OverloadedStrings #-}
2+{-# LANGUAGE FlexibleContexts #-}
23{-
34Copyright (C) 2006-2014 John MacFarlane <jgm@berkeley.edu>
45
@@ -708,7 +709,7 @@ extractCaption = do
708709toChunks :: String -> [String]
709710toChunks = dropWhile null
710711 . map (trim . unlines)
711− . splitBy (all (`elem` " \t")) . lines
712+ . splitBy (all (`elem` (" \t" :: String))) . lines
712713
713714codeblock :: Maybe String -> String -> String -> RSTParser Blocks
714715codeblock numberLines lang body =