aboutsummaryrefslogtreecommitdiff
path: root/pandoc-server/src/Text
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2022-09-29 09:45:14 +0200
committerJohn MacFarlane <[email protected]>2022-09-30 08:33:40 -0700
commitddaadc88bc7e09fdff35fcf100a0f9fbe5d17728 (patch)
treebbddc6be332d8edcd5d78743b7ca259253bc07a3 /pandoc-server/src/Text
parente099de1d4d2f4ca865596a6608774c7c0940a0d9 (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-server/src/Text')
-rw-r--r--pandoc-server/src/Text/Pandoc/Server.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/pandoc-server/src/Text/Pandoc/Server.hs b/pandoc-server/src/Text/Pandoc/Server.hs
index 0aea753a4..940606deb 100644
--- a/pandoc-server/src/Text/Pandoc/Server.hs
+++ b/pandoc-server/src/Text/Pandoc/Server.hs
@@ -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{