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, pretty, template-haskell [details]
License BSD3
Author Nick Partridge
Category Development
Home page
Source repo head: git clone git://
Uploaded Wed Nov 30 00:28:43 UTC 2016 by NickPartridge
Distributions Debian:0.2.3, Fedora:0.2.4, LTSHaskell:0.2.4, NixOS:0.2.4, openSUSE:0.2.4
Downloads 3276 total (31 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-11-30 [all 1 reports]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

Readme for cabal-file-th-0.2.4

[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