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]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS], 0.2, 0.3
Change log
Dependencies base (>= && <4.18), bytestring (>= && <0.12), deepseq (>= && <1.5), prettyprinter (>=1.4.0 && <1.8), safe-exceptions (>= && <0.2), template-haskell (>= && <2.20), text (>= && <2.1) [details]
License BSD-3-Clause
Copyright 2021-2022 Thomas Bidne
Author Thomas Bidne
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 302 total (24 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.