The cabal-file-th package

[Tags:bsd3, library, test]

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, 0.2.4
Dependencies base (==4.*), Cabal (>=1.10), directory, pretty, 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 Nov 30 00:28:43 UTC 2016 by NickPartridge
Distributions Debian:0.2.3, Fedora:0.2.3, LTSHaskell:0.2.4, NixOS:0.2.4, Stackage:0.2.4, Tumbleweed:0.2.3
Downloads 2066 total (66 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2016-11-30 [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for cabal-file-th

Readme for cabal-file-th-0.2.4

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