cabal-file-th

Template Haskell expressions for reading fields from a project's cabal file. http://github.com/nkpart/cabal-file-th

LTS Haskell 8.23:0.2.4
Stackage Nightly 2017-07-21:0.2.4
Latest on Hackage:0.2.4
BSD3 licensed by Nick Partridge
Maintained by nkpart@gmail.com

Module documentation for 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
Used by 2 packages:
comments powered byDisqus