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

[ bsd3, development, library ] [ Propose Tags ]

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


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.6, 0.2.7
Dependencies base (>=4 && <5), Cabal (>=1.10 && <1.13), directory, template-haskell [details]
License BSD-3-Clause
Author Nick Partridge
Maintainer nkpart@gmail.com
Category Development
Home page http://github.com/nkpart/cabal-file-th
Source repo head: git clone git://github.com/nkpart/cabal-file-th.git
Uploaded by NickPartridge at 2011-10-25T00:39:45Z
Distributions Fedora:0.2.7
Reverse Dependencies 2 direct, 3 indirect [details]
Downloads 7698 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 cabal-file-th-0.2

[back to package description]

cabal-file-th

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

Usage

import qualified Distribution.PackageDescription.TH as P

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

Install

$ cabal install cabal-file-th