aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Lua
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2018-10-26 23:29:50 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-28 12:08:52 -0700
commit6f29e1c9c1fc4c655c5ca4fad9e9256f8313d7bd (patch)
treec309ba4be4c43beedc944bbd3c5cf98d4f210f3c /src/Text/Pandoc/Lua
parent7f54f76e8b5a7b45cd61a354980ef77f65baba20 (diff)
downloadpandoc-6f29e1c9c1fc4c655c5ca4fad9e9256f8313d7bd.tar.gz
T.P.Lua: rename `runPandocLua` to `runLua` (API change)
Diffstat (limited to 'src/Text/Pandoc/Lua')
-rw-r--r--src/Text/Pandoc/Lua/Init.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Lua/Init.hs b/src/Text/Pandoc/Lua/Init.hs
index c9ee7267a..e922e3d93 100644
--- a/src/Text/Pandoc/Lua/Init.hs
+++ b/src/Text/Pandoc/Lua/Init.hs
@@ -29,7 +29,7 @@ Functions to initialize the Lua interpreter.
module Text.Pandoc.Lua.Init
( LuaException (..)
, LuaPackageParams (..)
- , runPandocLua
+ , runLua
, initLuaState
, luaPackageParams
) where
@@ -56,8 +56,8 @@ newtype LuaException = LuaException String deriving (Show)
-- | Run the lua interpreter, using pandoc's default way of environment
-- initialization.
-runPandocLua :: Lua a -> PandocIO (Either LuaException a)
-runPandocLua luaOp = do
+runLua :: Lua a -> PandocIO (Either LuaException a)
+runLua luaOp = do
luaPkgParams <- luaPackageParams
globals <- defaultGlobals
enc <- liftIO $ getForeignEncoding <* setForeignEncoding utf8