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]

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
Change log CHANGELOG.md
Dependencies base (>=4.14.1.0 && <4.20), 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.22), text (>=1.2.3.2 && <2.2) [details]
License BSD-3-Clause
Copyright 2021 Thomas Bidne
Author Thomas Bidne
Maintainer tbidne@prontonmail.com
Revised Revision 6 made by tbidne at 2023-12-17T23:18:09Z
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 2021-12-18T21:10:51Z
Distributions NixOS:0.3
Downloads 517 total (20 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.1.0.0

[back to package description]

Package Version

GitHub release (latest SemVer) Hackage Hackage Deps Hackage CI Cabal CI Stack CI Nix CI MIT

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 haddock here or on hackage for more information.