git.iko.soy/typeable/pandoc
on master help sign in
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)

commitf42839ee2c14cf707c1059c0b3f5e4b31c642efb authorAlbert Krewinkel <albert@zeitkraut.de> dateFri 29 Dec 2017, 10:06 (9 years ago) parent7fa286f
1 file changed−6
src/Text/Pandoc/Lua.hs−6
src/Text/Pandoc/Lua.hs−6
@@ -29,7 +29,6 @@ module Text.Pandoc.Lua
2929 ( LuaException (..)
3030 , runLuaFilter
3131 , runPandocLua
32− , pushPandocModule
3332 ) where
3433
3534import Control.Monad ((>=>))
@@ -39,7 +38,6 @@ import Text.Pandoc.Class (PandocIO)
3938import Text.Pandoc.Definition (Pandoc)
4039import Text.Pandoc.Lua.Filter (LuaFilter, walkMWithLuaFilter)
4140import Text.Pandoc.Lua.Init (runPandocLua)
42−import Text.Pandoc.Lua.Module.Pandoc (pushModule) -- TODO: remove
4341import Text.Pandoc.Lua.Util (popValue)
4442import qualified Foreign.Lua as Lua
4543
@@ -77,7 +75,3 @@ runLuaFilter' filterPath format pd = do
7775
7876runAll :: [LuaFilter] -> Pandoc -> Lua Pandoc
7977runAll = foldr ((>=>) . walkMWithLuaFilter) return
80−
81−-- | DEPRECATED: Push the pandoc module to the Lua Stack.
82−pushPandocModule :: Maybe FilePath -> Lua Lua.NumResults
83−pushPandocModule = pushModule