The cabal-file-th package

[Tags: bsd3, library]

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


[Skip to ReadMe]

Properties

Versions0.1, 0.2, 0.2.1, 0.2.2, 0.2.3
Change logNone available
Dependenciesbase (==4.*), Cabal (>=1.10), directory, template-haskell [details]
LicenseBSD3
AuthorNick Partridge
Maintainernkpart@gmail.com
CategoryDevelopment
Home pagehttp://github.com/nkpart/cabal-file-th
Source repositoryhead: git clone git://github.com/nkpart/cabal-file-th.git
UploadedSun Sep 23 23:29:06 UTC 2012 by NickPartridge
UpdatedMon Aug 4 01:14:36 UTC 2014 by NickPartridge to revision 1
DistributionsDebian:0.2.3, Fedora:0.2.3, LTSHaskell:0.2.3, NixOS:0.2.3, Stackage:0.2.3
Downloads1695 total (70 in last 30 days)
Votes
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for cabal-file-th-0.2.3

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