[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-29 09:45:14 +02:00
committed by John MacFarlane
parent e099de1d4d
commit ddaadc88bc
11 changed files with 26 additions and 20 deletions
+2 -2
View File
@@ -85,7 +85,7 @@ cliOptions =
, Option ['v'] ["version"]
(NoArg (\_ -> do
prg <- getProgName
putStrLn $ prg <> " " <> T.unpack pandocVersion
putStrLn $ prg <> " " <> T.unpack pandocVersionText
exitWith ExitSuccess))
"version info"
@@ -208,7 +208,7 @@ server = convertBytes
:<|> convertJSON
:<|> mapM convertJSON
:<|> babelmark -- for babelmark which expects {"html": "", "version": ""}
:<|> pure pandocVersion
:<|> pure pandocVersionText
where
babelmark text' from' to' standalone' = do
res <- convertText def{