From ddaadc88bc7e09fdff35fcf100a0f9fbe5d17728 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Thu, 29 Sep 2022 09:45:14 +0200 Subject: [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. --- pandoc-server/src/Text/Pandoc/Server.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pandoc-server') 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{ -- cgit v1.2.3