@hackage cabal-file-th0.2.7
Template Haskell expressions for reading fields from a project's cabal file.
Categories
License
BSD-3-Clause
Maintainer
nkpart@gmail.com
Links
Versions
Installation
Dependencies (5)
Dependents (8)
@hackage/hledger, @hackage/acme-everything, @hackage/pushme, @hackage/vgrep, @hackage/shelltestrunner, @hackage/kit, Show all…
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