From 6f29e1c9c1fc4c655c5ca4fad9e9256f8313d7bd Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Fri, 26 Oct 2018 23:29:50 +0200 Subject: T.P.Lua: rename `runPandocLua` to `runLua` (API change) --- src/Text/Pandoc/Writers/Custom.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Text/Pandoc/Writers') diff --git a/src/Text/Pandoc/Writers/Custom.hs b/src/Text/Pandoc/Writers/Custom.hs index 7eb982f4b..acf18fba9 100644 --- a/src/Text/Pandoc/Writers/Custom.hs +++ b/src/Text/Pandoc/Writers/Custom.hs @@ -44,7 +44,7 @@ import Text.Pandoc.Class (PandocIO) import Text.Pandoc.Definition import Text.Pandoc.Error import Text.Pandoc.Lua.Global (Global (..), setGlobals) -import Text.Pandoc.Lua.Init (LuaException (LuaException), runPandocLua) +import Text.Pandoc.Lua.Init (LuaException (LuaException), runLua) import Text.Pandoc.Lua.StackInstances () import Text.Pandoc.Lua.Util (addField, dofileWithTraceback) import Text.Pandoc.Options @@ -111,7 +111,7 @@ writeCustom luaFile opts doc@(Pandoc meta _) = do let globals = [ PANDOC_DOCUMENT doc , PANDOC_SCRIPT_FILE luaFile ] - res <- runPandocLua $ do + res <- runLua $ do setGlobals globals stat <- dofileWithTraceback luaFile -- check for error in lua script (later we'll change the return type -- cgit v1.2.3