From 49aa337c1dfe09111ebdde16aebd8f106a7e152e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 31 Dec 2025 17:28:29 -0500 Subject: T.P.Error: define displayException for PandocError. This is a behavior change, not an API change, since there was already a definition that defaulted to using Show. The change here is that we use renderError for a more human-readable version. --- src/Text/Pandoc/Error.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Text/Pandoc/Error.hs b/src/Text/Pandoc/Error.hs index b52573177..22f613c1e 100644 --- a/src/Text/Pandoc/Error.hs +++ b/src/Text/Pandoc/Error.hs @@ -68,6 +68,8 @@ data PandocError = PandocIOError Text IOError deriving (Show, Typeable, Generic) instance Exception PandocError + where + displayException = T.unpack . renderError renderError :: PandocError -> Text renderError e = -- cgit v1.2.3