diff options
| author | Albert Krewinkel <[email protected]> | 2022-09-29 09:45:14 +0200 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-09-30 08:33:40 -0700 |
| commit | ddaadc88bc7e09fdff35fcf100a0f9fbe5d17728 (patch) | |
| tree | bbddc6be332d8edcd5d78743b7ca259253bc07a3 /pandoc-cli/src | |
| parent | e099de1d4d2f4ca865596a6608774c7c0940a0d9 (diff) | |
[API Change] Rename `pandocVersion` to `pandocVersionText`...
and add a new `pandocVersion` value with type `Version`. This is
consistent with the type used for `pandocTypesVersion` and allows to use
the value where a Version type is required.
Diffstat (limited to 'pandoc-cli/src')
| -rw-r--r-- | pandoc-cli/src/pandoc.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pandoc-cli/src/pandoc.hs b/pandoc-cli/src/pandoc.hs index 47a8988f0..ca5cf6651 100644 --- a/pandoc-cli/src/pandoc.hs +++ b/pandoc-cli/src/pandoc.hs @@ -21,7 +21,7 @@ import Text.Pandoc.App ( convertWithOpts, defaultOpts, options import Text.Pandoc.Class (runIOorExplode) import Text.Pandoc.Error (handleError) import Text.Pandoc.Lua (runLua, runLuaNoEnv) -import Text.Pandoc.Shared (pandocVersion) +import Text.Pandoc.Shared (pandocVersionText) import qualified Text.Pandoc.UTF8 as UTF8 import PandocCLI.Server @@ -45,7 +45,7 @@ main = E.handle (handleError . Left) $ do runLuaInterpreter :: String -> [String] -> IO () runLuaInterpreter progName args = do let settings = Settings - { settingsVersionInfo = "\nEmbedded in pandoc " <> pandocVersion + { settingsVersionInfo = "\nEmbedded in pandoc " <> pandocVersionText , settingsRunner = runner } runStandalone settings progName args |
