[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.
This commit is contained in:
Albert Krewinkel
2022-09-30 08:33:40 -07:00
committed by John MacFarlane
parent e099de1d4d
commit ddaadc88bc
11 changed files with 26 additions and 20 deletions
+2 -2
View File
@@ -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