Separate the Network.DNS.RBL.Weight module and fix the doctests.
[dead/harbl.git] / harbl.cabal
1 name: harbl
2 version: 0.0.1
3 cabal-version: >= 1.8
4 author: Michael Orlitzky
5 maintainer: Michael Orlitzky <michael@orlitzky.com>
6 category: Utils
7 license: AGPL-3
8 license-file: doc/LICENSE
9 build-type: Simple
10 synopsis:
11 Real-time Blacklist (RBL) library.
12 description:
13 Provides utility functions for performing blacklist lookups.
14
15
16 library
17 build-depends:
18 base >= 4.6 && < 5,
19 bytestring >= 0.9,
20 dns >= 2,
21 iproute >= 1.4,
22 parsec >= 3,
23 tasty >= 0.8,
24 tasty-hunit >= 0.8
25
26 exposed-modules:
27 Network.DNS.RBL
28 Network.DNS.RBL.Tests
29 Network.DNS.RBL.Weight
30
31 other-modules:
32 Network.DNS.RBL.Domain.Digit
33 Network.DNS.RBL.Domain.Domain
34 Network.DNS.RBL.Domain.Hyphen
35 Network.DNS.RBL.Domain.Label
36 Network.DNS.RBL.Domain.LdhStr
37 Network.DNS.RBL.Domain.LdhStrLetDig
38 Network.DNS.RBL.Domain.LetDig
39 Network.DNS.RBL.Domain.LetDigHyp
40 Network.DNS.RBL.Domain.Letter
41 Network.DNS.RBL.Domain.Subdomain
42 Network.DNS.RBL.Host
43 Network.DNS.RBL.IPv4Pattern
44 Network.DNS.RBL.Pretty
45 Network.DNS.RBL.Reversible
46 Network.DNS.RBL.Site
47
48 hs-source-dirs: harbl/src
49
50 ghc-options:
51 -Wall
52 -fwarn-hi-shadowing
53 -fwarn-missing-signatures
54 -fwarn-name-shadowing
55 -fwarn-orphans
56 -fwarn-type-defaults
57 -fwarn-tabs
58 -fwarn-incomplete-record-updates
59 -fwarn-monomorphism-restriction
60 -fwarn-unused-do-bind
61 -O2
62
63 ghc-prof-options:
64 -prof
65 -fprof-auto
66 -fprof-cafs
67
68
69 executable harbl
70 build-depends:
71 base >= 4.6 && < 5,
72 cmdargs >= 0.10.6,
73 configurator >= 0.2,
74 directory,
75 filepath,
76 harbl,
77 parsec >= 3
78
79 main-is: Main.hs
80
81 hs-source-dirs: harbl-cli/src
82
83 ghc-options:
84 -Wall
85 -fwarn-hi-shadowing
86 -fwarn-missing-signatures
87 -fwarn-name-shadowing
88 -fwarn-orphans
89 -fwarn-type-defaults
90 -fwarn-tabs
91 -fwarn-incomplete-record-updates
92 -fwarn-monomorphism-restriction
93 -fwarn-unused-do-bind
94 -O2
95
96 ghc-prof-options:
97 -prof
98 -fprof-auto
99 -fprof-cafs
100
101
102 test-suite testsuite
103 type: exitcode-stdio-1.0
104 hs-source-dirs: test
105 main-is: TestSuite.hs
106 build-depends:
107 base >= 4.6 && < 5,
108 harbl,
109 tasty >= 0.8,
110 tasty-hunit >= 0.8
111
112 -- It's not entirely clear to me why I have to reproduce all of this.
113 ghc-options:
114 -Wall
115 -fwarn-hi-shadowing
116 -fwarn-missing-signatures
117 -fwarn-name-shadowing
118 -fwarn-orphans
119 -fwarn-type-defaults
120 -fwarn-tabs
121 -fwarn-incomplete-record-updates
122 -fwarn-monomorphism-restriction
123 -fwarn-unused-do-bind
124 -O2
125
126
127 test-suite doctests
128 type: exitcode-stdio-1.0
129 hs-source-dirs: test
130 main-is: Doctests.hs
131 build-depends:
132 base >= 4.6 && < 5,
133 -- Additional test dependencies.
134 doctest >= 0.9,
135 filemanip >= 0.3.6
136
137 -- It's not entirely clear to me why I have to reproduce all of this.
138 ghc-options:
139 -Wall
140 -fwarn-hi-shadowing
141 -fwarn-missing-signatures
142 -fwarn-name-shadowing
143 -fwarn-orphans
144 -fwarn-type-defaults
145 -fwarn-tabs
146 -fwarn-incomplete-record-updates
147 -fwarn-monomorphism-restriction
148 -fwarn-unused-do-bind
149 -rtsopts
150 -threaded
151 -optc-O3
152 -optc-march=native
153 -O2
154
155
156 source-repository head
157 type: git
158 location: http://michael.orlitzky.com/git/harbl.git
159 branch: master