The cabal-file-th package

[ Tags: bsd3, development, library ] [ Propose Tags ]

Template Haskell expressions for reading fields from a project's cabal file.

[Skip to Readme]


Versions 0.1, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.4
Dependencies base (==4.*), Cabal (>=1.10), directory, template-haskell [details]
License BSD3
Author Nick Partridge
Category Development
Home page
Source repo head: git clone git://
Uploaded Sun Sep 23 23:29:06 UTC 2012 by NickPartridge
Updated Mon Aug 4 01:14:36 UTC 2014 by NickPartridge to revision 1   [What is this?]
Distributions Debian:0.2.3, Fedora:0.2.4, LTSHaskell:0.2.4, NixOS:0.2.4, Stackage:0.2.4, openSUSE:0.2.4
Downloads 3250 total (61 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




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

For package maintainers and hackage trustees

Readme for cabal-file-th-0.2.3

[back to package description]


Use template haskell to bring fields from your cabal file into your haskell source files.


import qualified Distribution.PackageDescription.TH as P

myVersion :: String
myVersion = $(packageVariable (pkgVersion . package))


$ cabal install cabal-file-th