package-version: A package for retrieving a package's version number.

[ bsd3, development, library ] [ Propose Tags ]

package-version reads the package version number from a cabal file. This version number can be retrieved at compile-time via TemplateHaskell or runtime via ordinary functions.

[Skip to Readme]


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS], 0.2, 0.3
Change log
Dependencies base (>= && <4.20), bytestring (>= && <0.13), deepseq (>= && <1.6), prettyprinter (>=1.4.0 && <1.8), safe-exceptions (>= && <0.2), template-haskell (>= && <2.22), text (>= && <2.2) [details]
License BSD-3-Clause
Copyright 2021-2022 Thomas Bidne
Author Thomas Bidne
Revised Revision 3 made by tbidne at 2023-12-17T23:18:04Z
Category Development
Home page
Bug tracker
Source repo head: git clone
Uploaded by tbidne at 2022-10-21T03:57:42Z
Distributions NixOS:0.3
Downloads 521 total (8 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for package-version-0.3

[back to package description]

Package Version

Hackage haskell BSD-3-Clause

nix cabal stack style

Package Description

This package defines a PackageVersion type that represents PVP version numbers. We provide functionality for reading these numbers from cabal files at both runtime and compile-time, the latter being useful when implementing --version options in executables. See the haddocks on hackage for more information.