diff options
| author | John MacFarlane <[email protected]> | 2022-10-19 09:11:34 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-10-19 09:16:13 -0700 |
| commit | fde8635a181a6ed0cec2a1756fc3e35fee39d29d (patch) | |
| tree | 46180c54701e1267afd69ad61d5f1ee36741c2a0 /pandoc-cli/src | |
| parent | 4bf685e7ebc5255ab985b9886c88915c0feb8b61 (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/src')
| -rw-r--r-- | pandoc-cli/src/pandoc.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pandoc-cli/src/pandoc.hs b/pandoc-cli/src/pandoc.hs index 274b1c567..4415f7e69 100644 --- a/pandoc-cli/src/pandoc.hs +++ b/pandoc-cli/src/pandoc.hs @@ -24,7 +24,8 @@ import Data.Monoid (Any(..)) import Control.Monad (when) import PandocCLI.Lua import PandocCLI.Server -import Text.Pandoc.Shared (pandocVersion, defaultUserDataDir) +import Text.Pandoc.Version (pandocVersion) +import Text.Pandoc.Shared (defaultUserDataDir) import Text.Pandoc.Scripting (ScriptingEngine(..)) import Data.Version (showVersion) import qualified Data.Text as T |
