summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2017-12-29 10:06:38 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2017-12-29 10:11:45 +0100
commitf42839ee2c14cf707c1059c0b3f5e4b31c642efb (patch)
tree213050a71617bf13981795f78c77ec3175a19c17 /src
parent7fa286fff1eb66ba7e2b2f6452fd06e293347d17 (diff)
Lua filters: stop exporting pushPandocModule
The function `pushPandocModule` was exported by Text.Pandoc.Lua to enable simpler testing. The introduction of `runPandocLua` renders direct use of this function obsolete. (API change)
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Lua.hs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/Text/Pandoc/Lua.hs b/src/Text/Pandoc/Lua.hs
index 02e1b0424..d02963418 100644
--- a/src/Text/Pandoc/Lua.hs
+++ b/src/Text/Pandoc/Lua.hs
@@ -29,7 +29,6 @@ module Text.Pandoc.Lua
( LuaException (..)
, runLuaFilter
, runPandocLua
- , pushPandocModule
) where
import Control.Monad ((>=>))
@@ -39,7 +38,6 @@ import Text.Pandoc.Class (PandocIO)
import Text.Pandoc.Definition (Pandoc)
import Text.Pandoc.Lua.Filter (LuaFilter, walkMWithLuaFilter)
import Text.Pandoc.Lua.Init (runPandocLua)
-import Text.Pandoc.Lua.Module.Pandoc (pushModule) -- TODO: remove
import Text.Pandoc.Lua.Util (popValue)
import qualified Foreign.Lua as Lua
@@ -77,7 +75,3 @@ runLuaFilter' filterPath format pd = do
runAll :: [LuaFilter] -> Pandoc -> Lua Pandoc
runAll = foldr ((>=>) . walkMWithLuaFilter) return
-
--- | DEPRECATED: Push the pandoc module to the Lua Stack.
-pushPandocModule :: Maybe FilePath -> Lua Lua.NumResults
-pushPandocModule = pushModule