cabal-file-th: Template Haskell expressions for reading fields from a project's cabal file.

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Warnings:

Template Haskell expressions for reading fields from a project's cabal file.


[Skip to Readme]

Properties

Versions 0.1, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.6, 0.2.7, 0.2.7
Change log None available
Dependencies base (>=4 && <5), 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 2020-03-22T23:06:03Z

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for cabal-file-th-0.2.7

[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