From d5a7abd47f0862c51bc7ce8349e4290ad1c24546 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 19 Sep 2020 15:58:28 -0700 Subject: Change deprecated Builder.isNull to null. --- src/Text/Pandoc/Readers/Markdown.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Text/Pandoc/Readers/Markdown.hs') diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index 866b074c7..083131a05 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -222,9 +222,9 @@ pandocTitleBlock = try $ do author' <- author date' <- date return $ - (if B.isNull title' then id else B.setMeta "title" title') + (if null title' then id else B.setMeta "title" title') . (if null author' then id else B.setMeta "author" author') - . (if B.isNull date' then id else B.setMeta "date" date') + . (if null date' then id else B.setMeta "date" date') $ nullMeta updateState $ \st -> st{ stateMeta' = stateMeta' st <> meta' } -- cgit v1.2.3