aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-12-10 23:41:37 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-01-25 17:07:41 +0100
commitb5d15670223ada11a357161f3b057fae6f852554 (patch)
tree4c8d3a98e62a5d6bec1d04cd9598dce8619e220f /src/Text/Pandoc/Writers
parent73f373660278d9283499951f7a16c0dc2d79ef08 (diff)
downloadpandoc-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.hs2
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