Better fix for the problem with ghc 7.8.
This commit is contained in:
parent
3747abf029
commit
8264ae2abe
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue