Skip to content

Commit

Permalink
Use PackageInfo for cabal-install version number
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleidukos committed Nov 7, 2023
1 parent 156d8b2 commit 504814b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cabal-install/cabal-install.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ library
default-extensions: TypeOperators

hs-source-dirs: src
other-modules:
PackageInfo_cabal_install
exposed-modules:
-- this modules are moved from Cabal
-- they are needed for as long until cabal-install moves to parsec parser
Expand Down
4 changes: 3 additions & 1 deletion cabal-install/src/Distribution/Client/Version.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ module Distribution.Client.Version

import Distribution.Version

import qualified PackageInfo_cabal_install as PackageInfo

-- This value determines the `cabal-install --version` output.
--
-- It is used in several places throughout the project, including anonymous build reports, client configuration,
-- and project planning output. Historically, this was a @Paths_*@ module, however, this conflicted with
-- program coverage information generated by HPC, and hence was moved to be a standalone value.
--
cabalInstallVersion :: Version
cabalInstallVersion = mkVersion [3, 11]
cabalInstallVersion = mkVersion' PackageInfo.version

0 comments on commit 504814b

Please sign in to comment.