diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2018-10-26 23:29:50 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-10-28 12:08:52 -0700 |
commit | 6f29e1c9c1fc4c655c5ca4fad9e9256f8313d7bd (patch) | |
tree | c309ba4be4c43beedc944bbd3c5cf98d4f210f3c /src/Text/Pandoc/Lua | |
parent | 7f54f76e8b5a7b45cd61a354980ef77f65baba20 (diff) | |
download | pandoc-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.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 |