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/Lua/Init.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Text/Pandoc/Lua') 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 -- cgit v1.2.3