File: README.md

package info (click to toggle)
haskell-cabal-file-th 0.2.3-8
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 88 kB
  • sloc: haskell: 48; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 330 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

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