aboutsummaryrefslogtreecommitdiff
path: root/pandoc-cli/lua
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2022-10-19 09:11:34 -0700
committerJohn MacFarlane <[email protected]>2022-10-19 09:16:13 -0700
commitfde8635a181a6ed0cec2a1756fc3e35fee39d29d (patch)
tree46180c54701e1267afd69ad61d5f1ee36741c2a0 /pandoc-cli/lua
parent4bf685e7ebc5255ab985b9886c88915c0feb8b61 (diff)
Split Text.Pandoc.Version from Text.Pandoc.Shared.
This new module exports `pandocVersion` and `pandocVersionText`, which are no longer exported from Text.Pandoc.Shared. [API change] Also, we now set the `pandoc-version` variable centrally rather than in the writers. One effect is the man writer now emits a comment with the pandoc version (this was intended before, judging from the template, but it didn't happen because the vairable wasn't set).
Diffstat (limited to 'pandoc-cli/lua')
-rw-r--r--pandoc-cli/lua/PandocCLI/Lua.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/pandoc-cli/lua/PandocCLI/Lua.hs b/pandoc-cli/lua/PandocCLI/Lua.hs
index 6507587c8..8c50e66b3 100644
--- a/pandoc-cli/lua/PandocCLI/Lua.hs
+++ b/pandoc-cli/lua/PandocCLI/Lua.hs
@@ -14,7 +14,7 @@ import HsLua.CLI (EnvBehavior (..), Settings (..), runStandalone)
import Text.Pandoc.Class (runIOorExplode)
import Text.Pandoc.Error (handleError)
import Text.Pandoc.Lua (runLua, runLuaNoEnv, getEngine)
-import Text.Pandoc.Shared (pandocVersionText)
+import Text.Pandoc.Version (pandocVersionText)
-- | Runs pandoc as a Lua interpreter that is (mostly) compatible with
-- the default @lua@ program shipping with Lua.