-
Notifications
You must be signed in to change notification settings - Fork 0
/
notcpp.cabal
76 lines (61 loc) · 2.06 KB
/
notcpp.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
-- For Test-suite support:
Cabal-Version: >= 1.9.2
Name: notcpp
Version: 0.2.0.3
Category: Template Haskell
Synopsis: Avoiding the C preprocessor via cunning use of Template Haskell
Description:
notcpp is a library that attempts to provide an alternative to
using CPP as a mechanism for conditional compilation. It provides
facilities for determining if specific names or class instances
exist and responding accordingly.
.
When a value or class instance appears between minor releases of a
third-party package, a common way of dealing with the problem is to
use CPP to conditionally use one block of code or another. The
trouble with CPP is it's hard to statically analyse: tools based on
haskell-src-exts will outright refuse to parse it, for example. It
turns out Template Haskell will do the same job in some cases.
.
notcpp is largely a proof-of-concept, experimental package: you
are welcome to use it if it suits you, but it may be liable to
change suddenly.
Author: Ben Millwood <[email protected]>
Maintainer: Ben Millwood <[email protected]>
Bug-reports: https://github.com/benmachine/notcpp/issues
Copyright: 2012 Ben Millwood
License: BSD3
License-file: LICENSE
Extra-source-files: ChangeLog README
Build-type: Simple
Tested-with: GHC == 7.0.4, GHC == 7.2.2, GHC == 7.4.2, GHC == 7.6.2, GHC == 7.8.2, GHC == 7.10.1
Source-repository head
Type: git
Location: git://github.com/benmachine/notcpp
Library
Exposed-modules:
NotCPP.ScopeLookup
NotCPP.LookupValueName
NotCPP.OrphanEvasion
Other-modules:
NotCPP.Utils
Build-depends:
base < 5,
template-haskell >= 2.5 && < 2.11
Extensions:
TemplateHaskell
GHC-Options: -W
Hs-source-dirs: .
Test-suite examples-compile
Type: exitcode-stdio-1.0
Main-is: Test/Main.hs
Other-modules:
Test.OrphanEvasion
Test.ScopeLookup
Build-depends:
base < 5,
template-haskell >= 2.5 && < 2.11
Extensions:
TemplateHaskell
GHC-Options: -W
Hs-source-dirs: .