diff options
Diffstat (limited to 'src/Text/Pandoc/Lua')
-rw-r--r-- | src/Text/Pandoc/Lua/Init.hs | 6 |
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 |