diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-12-10 23:41:37 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-01-25 17:07:41 +0100 |
commit | b5d15670223ada11a357161f3b057fae6f852554 (patch) | |
tree | 4c8d3a98e62a5d6bec1d04cd9598dce8619e220f /src/Text/Pandoc/Writers | |
parent | 73f373660278d9283499951f7a16c0dc2d79ef08 (diff) | |
download | pandoc-b5d15670223ada11a357161f3b057fae6f852554.tar.gz |
Class: removed 'fail' from PandocMonad.
Do we need this? I don't see why.
There's a name clash which would better be avoided.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/Docx.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Docx.hs b/src/Text/Pandoc/Writers/Docx.hs index 20320907e..662b4d3bb 100644 --- a/src/Text/Pandoc/Writers/Docx.hs +++ b/src/Text/Pandoc/Writers/Docx.hs @@ -1276,7 +1276,7 @@ parseXml refArchive distArchive relpath = findEntryByPath relpath distArchive of Nothing -> fail $ relpath ++ " missing in reference docx" Just e -> case parseXMLDoc . UTF8.toStringLazy . fromEntry $ e of - Nothing -> P.fail $ relpath ++ " corrupt in reference docx" + Nothing -> fail $ relpath ++ " corrupt in reference docx" Just d -> return d -- | Scales the image to fit the page |