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 [faq] 0.1, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.6
Dependencies base (==4.*), Cabal (>=1.10), directory, pretty, 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 Fri Jan 11 05:06:05 UTC 2019
Distributions Debian:0.2.4, Fedora:0.2.4, NixOS:0.2.6, Stackage:0.2.6
Downloads 3979 total (120 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-01-11 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for cabal-file-th-0.2.6

[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