The cabal-file-th package

[Tags:bsd3, library]

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


[Skip to Readme]

Properties

Versions 0.1, 0.2, 0.2.1, 0.2.2, 0.2.3
Dependencies base (==4.*), Cabal (==1.10.*), directory, template-haskell [details]
License BSD3
Author Nick Partridge
Maintainer nkpart@gmail.com
Stability Unknown
Category Development
Home page http://github.com/nkpart/cabal-file-th
Source repository head: git clone git://github.com/nkpart/cabal-file-th.git
Uploaded Wed Oct 19 10:34:01 UTC 2011 by NickPartridge
Distributions Debian:0.2.3, Fedora:0.2.3, LTSHaskell:0.2.3, NixOS:0.2.3, Stackage:0.2.3
Downloads 1947 total (8 in the last 30 days)
Votes
0 []
Status Docs not available [build log]
All reported builds failed as of 2015-12-10 [all 5 reports]

Modules

  • Distribution
    • PackageDescription
      • Distribution.PackageDescription.TH

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for cabal-file-th

Readme for cabal-file-th-0.1

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