From 35d44bb666fac8706231687c573650efd8b165e9 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 9 Dec 2023 10:21:23 -0800 Subject: [PATCH] Link pandoc-cli version to pandoc version. Henceforth pandoc-cli's version will be synchronized with pandoc's, and pandoc-cli will depend on an exact pandoc version. This will avoid confusion by ensuring that `cabal install pandoc-cli-X.Y.Z` installs pandoc version X.Y.Z. It will make things more straightforward for upstream packagers (see #9232). Note also that the man pages included in this package are for a specific pandoc version. This scheme does not follow the Haskell PVP, but that should cause no harm, because this package does not expose a library. --- pandoc-cli/pandoc-cli.cabal | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pandoc-cli/pandoc-cli.cabal b/pandoc-cli/pandoc-cli.cabal index 38b93573a256..e18699571bfb 100644 --- a/pandoc-cli/pandoc-cli.cabal +++ b/pandoc-cli/pandoc-cli.cabal @@ -1,6 +1,6 @@ cabal-version: 2.4 name: pandoc-cli -version: 0.1.1.1 +version: 3.1.9 build-type: Simple license: GPL-2.0-or-later license-file: COPYING.md @@ -68,7 +68,9 @@ executable pandoc hs-source-dirs: src main-is: pandoc.hs buildable: True - build-depends: pandoc >= 3.0, + -- Note: we always link to an exact version of pandoc, with the + -- same version as this package: + build-depends: pandoc == 3.1.9, text other-modules: PandocCLI.Lua , PandocCLI.Server @@ -87,7 +89,7 @@ executable pandoc if flag(lua) build-depends: hslua-cli >= 1.4.1 && < 1.5, - pandoc-lua-engine >= 0.2 && < 0.3, + pandoc-lua-engine >= 0.2.1 && < 0.3, temporary >= 1.1 && < 1.4 hs-source-dirs: lua else