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...
b748833Mark Wright
src/Text/Pandoc/Readers/RST.hs+2−1
@@ -1,4 +1,5 @@
1{-# LANGUAGE OverloadedStrings #-}
1{-# LANGUAGE OverloadedStrings #-}
2+{-# LANGUAGE FlexibleContexts #-}
2{-
3{-
3Copyright (C) 2006-2014 John MacFarlane <jgm@berkeley.edu>
4Copyright (C) 2006-2014 John MacFarlane <jgm@berkeley.edu>
4
5
@@ -708,7 +709,7 @@ extractCaption = do
708toChunks :: String -> [String]
709toChunks :: String -> [String]
709toChunks = dropWhile null
710toChunks = dropWhile null
710 . map (trim . unlines)
711 . map (trim . unlines)
711− . splitBy (all (`elem` " \t")) . lines
712+ . splitBy (all (`elem` (" \t" :: String))) . lines
712
713
713codeblock :: Maybe String -> String -> String -> RSTParser Blocks
714codeblock :: Maybe String -> String -> String -> RSTParser Blocks
714codeblock numberLines lang body =
715codeblock numberLines lang body =