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

[ bsd3, development, library ] [ Propose Tags ] [ Report a vulnerability ]

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]

Downloads

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

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.2, 0.3, 0.4
Change log CHANGELOG.md
Dependencies base (>=4.14.1.0 && <4.21), bytestring (>=0.10.10.0 && <0.13), deepseq (>=1.4.4.0 && <1.6), prettyprinter (>=1.4.0 && <1.8), safe-exceptions (>=0.1.7.0 && <0.2), template-haskell (>=2.16.0.0 && <2.23), text (>=1.2.3.2 && <2.2) [details]
Tested with ghc ==8.10.7 || ==9.0.2 || ==9.2.4 || ==9.4.2
License BSD-3-Clause
Copyright 2021-2022 Thomas Bidne
Author Thomas Bidne
Maintainer tbidne@protonmail.com
Revised Revision 4 made by tbidne at 2024-05-22T00:05:39Z
Category Development
Home page https://github.com/tbidne/package-version/
Bug tracker https://github.com/tbidne/package-version/issues
Source repo head: git clone https://github.com/tbidne/package-version
Uploaded by tbidne at 2022-10-21T03:57:42Z
Distributions NixOS:0.4
Downloads 609 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.