-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathth-build.cabal
78 lines (56 loc) · 2.16 KB
/
th-build.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
-- Initial th-build.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
-- The name of the package.
name: th-build
-- The package version. See the Haskell package versioning policy
-- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for
-- standards guiding when and how versions should be incremented.
version: 0.4.0.0
-- A short (one-line) description of the package.
synopsis: More convenient construction of TH ASTs
-- A longer description of the package.
description:
The main feature here is implicit conversion of arguments to AST constructors: Tired of writing things like
.
@
valD (varP (mkName \"foo\")) (normalB (appE (varE 'not) (conT 'True))) []
@
.
? With th-build:
.
@
valD' \"foo\" (appE' 'not 'True) ()
@
.
Hint: Use @()@ for an empty list argument to an autoconverting function, since @[]@ will yield an type ambiguity error.
-- The license under which the package is released.
license: BSD3
-- The file containing the license text.
license-file: LICENSE
-- The package author(s).
author: Daniel Schüssler
-- An email address to which users can send suggestions, bug reports, and
-- patches.
maintainer: [email protected]
-- A copyright notice.
copyright: Daniel Schüssler
category: Template Haskell
build-type: Simple
-- Constraint on the version of Cabal needed to build this package.
cabal-version: >=1.8
homepage: https://github.com/DanielSchuessler/th-build
Source-Repository head
type: git
location: [email protected]:DanielSchuessler/th-build.git
library
-- Modules exported by the library.
exposed-modules:
Language.Haskell.TH.Build
-- Modules included in this library but not exported.
other-modules:
Language.Haskell.TH.Build.Extras,
Language.Haskell.TH.Build.Convertible,
Language.Haskell.TH.Build.Convertible.Restr,
Language.Haskell.TH.Build.Wrappers
-- Other library packages from which modules are imported.
build-depends: base >= 4 && < 6, template-haskell == 2.9.0.0