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]

Warnings:

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


[Skip to ReadMe]

Properties

Versions0.1, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.6, 0.2.6
Change logNone available
Dependenciesbase (==4.*), Cabal (>=1.10), directory, pretty, template-haskell [details]
LicenseBSD-3-Clause
AuthorNick Partridge
Maintainernkpart@gmail.com
CategoryDevelopment
Home pagehttp://github.com/nkpart/cabal-file-th
Source repositoryhead: git clone git://github.com/nkpart/cabal-file-th.git
UploadedFri Jan 11 05:01:42 UTC 2019 by NickPartridge

Modules

[Index]

Downloads

Maintainers' 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