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]
Versions [RSS] [faq] 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.8 && <5), Cabal (>=1.10 && <2.1), directory, pretty, template-haskell [details]
License BSD-3-Clause
Author Nick Partridge
Maintainer nkpart@gmail.com
Revised Revision 1 made by HerbertValerioRiedel at 2018-12-16T22:22:09Z
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 2016-11-30T00:28:43Z
Distributions Debian:0.2.4, Fedora:0.2.7, NixOS:0.2.7, Stackage:0.2.7
Downloads 6704 total (26 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2016-11-30 [all 1 reports]

Modules

[Index]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees

Candidates


Readme for cabal-file-th-0.2.4

[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