summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Lua.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2022-09-12 21:35:26 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2022-09-20 14:11:22 -0700
commit47a7cdecb970f7cd87019e8def8ccd2496d32677 (patch)
tree8815126c6bca30877eebac67160b58795929bbdb /src/Text/Pandoc/Lua.hs
parent7c07e57b6037fe1d1d941df70f53d974d4726796 (diff)
Export `applyFilter` from T.P.Lua.Filter.
Motivation: now we need not have any logic referring to hslua types (LuaE) in T.P.Filter.Lua. This restricts the parts of Pandoc that deal directly with hslua to T.P.Lua (and in tests, Tests.Lua). [API changes] T.P.Lua now exports `applyFilter`, `readCustom`, and `writeCustom`. The lower-level function `runFilterFile` is no longer exported.
Diffstat (limited to 'src/Text/Pandoc/Lua.hs')
-rw-r--r--src/Text/Pandoc/Lua.hs16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/Text/Pandoc/Lua.hs b/src/Text/Pandoc/Lua.hs
index 3d699b494..b1d263fc7 100644
--- a/src/Text/Pandoc/Lua.hs
+++ b/src/Text/Pandoc/Lua.hs
@@ -9,15 +9,19 @@
Running pandoc Lua filters.
-}
module Text.Pandoc.Lua
- ( runLua
- -- * Lua globals
- , Global (..)
+ ( -- * High-level functions
+ applyFilter
+ , readCustom
+ , writeCustom
+ -- * Low-level functions
+ , Global(..)
, setGlobals
- -- * Filters
- , runFilterFile
+ , runLua
) where
-import Text.Pandoc.Lua.Filter (runFilterFile)
+import Text.Pandoc.Lua.Filter (applyFilter)
import Text.Pandoc.Lua.Global (Global (..), setGlobals)
import Text.Pandoc.Lua.Init (runLua)
+import Text.Pandoc.Lua.Reader (readCustom)
+import Text.Pandoc.Lua.Writer (writeCustom)
import Text.Pandoc.Lua.Orphans ()