From 3747abf02947beeab00b8d76def538e224ecd7f7 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 18 Oct 2016 16:00:08 +0200 Subject: Try to fix build error on ghc 7.8. @tarleb this is an interesting one, see the build log in https://travis-ci.org/jgm/pandoc/jobs/168612017 It only failed on ghc 7.8; I think this must have to do with the change making Monad a superclass of Applicative, hence this change. --- src/Text/Pandoc/Readers/Org/Blocks.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text/Pandoc/Readers/Org/Blocks.hs b/src/Text/Pandoc/Readers/Org/Blocks.hs index 8d22beb33..9b549e3b3 100644 --- a/src/Text/Pandoc/Readers/Org/Blocks.hs +++ b/src/Text/Pandoc/Readers/Org/Blocks.hs @@ -288,7 +288,7 @@ blockAttributes = try $ do let kvAttrs = foldl' (appendValues "ATTR_HTML") Nothing kv let name = lookup "NAME" kv let label = lookup "LABEL" kv - caption' <- sequence (parseFromString inlines . (++ "\n") <$> caption) + caption' <- mapM (parseFromString inlines . (++ "\n")) caption kvAttrs' <- parseFromString keyValues . (++ "\n") $ fromMaybe mempty kvAttrs return $ BlockAttributes { blockAttrName = name -- cgit v1.2.3