aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Lua/Util.hs
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-12-09 08:36:17 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2021-12-11 08:59:11 -0800
commite88224621de1a8f1be4ea7ad9bf05fe635ddc3cc (patch)
tree1d74be95383ce4e9064e71d6f6c0c828375c87ec /src/Text/Pandoc/Lua/Util.hs
parent83b5b79c0e4f073198b5af11b9e8a0a4471fcd41 (diff)
downloadpandoc-e88224621de1a8f1be4ea7ad9bf05fe635ddc3cc.tar.gz
Custom reader: ensure old Readers continue to work
Retry conversion by passing a string instead of sources when the `Reader` fails with a message that hints at an outdated function. A deprecation notice is reported in that case.
Diffstat (limited to 'src/Text/Pandoc/Lua/Util.hs')
-rw-r--r--src/Text/Pandoc/Lua/Util.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Lua/Util.hs b/src/Text/Pandoc/Lua/Util.hs
index 6d67d340d..9c6f42b2b 100644
--- a/src/Text/Pandoc/Lua/Util.hs
+++ b/src/Text/Pandoc/Lua/Util.hs
@@ -13,6 +13,7 @@ Lua utility functions.
module Text.Pandoc.Lua.Util
( addField
, callWithTraceback
+ , pcallWithTraceback
, dofileWithTraceback
) where