cabal-file-th

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

LTS Haskell 14.10:0.2.6
Stackage Nightly 2019-09-21:0.2.6
Latest on Hackage:0.2.6

See all snapshots cabal-file-th appears in

BSD-3-Clause licensed by Nick Partridge
Maintained by nkpart@gmail.com

Module documentation for 0.2.6

This version can be pinned in stack with:cabal-file-th-0.2.6@sha256:d278ab950813e8bb1ab242a4e43bc50851761421a1e1bc33dae8949926adf548,1158

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
comments powered byDisqus