Better fix for the problem with ghc 7.8.

This commit is contained in:
John MacFarlane 2016-10-18 16:25:13 +02:00
parent 3747abf029
commit 8264ae2abe

View file

@ -288,7 +288,9 @@ blockAttributes = try $ do
let kvAttrs = foldl' (appendValues "ATTR_HTML") Nothing kv
let name = lookup "NAME" kv
let label = lookup "LABEL" kv
caption' <- mapM (parseFromString inlines . (++ "\n")) caption
caption' <- case caption of
Nothing -> return Nothing
Just s -> Just <$> parseFromString inlines (s ++ "\n")
kvAttrs' <- parseFromString keyValues . (++ "\n") $ fromMaybe mempty kvAttrs
return $ BlockAttributes
{ blockAttrName = name