]> gitweb.michael.orlitzky.com - email-validator.git/blob - email-validator.cabal
email-validator.cabal: remove all upper version bounds (except base).
[email-validator.git] / email-validator.cabal
1 name: email-validator
2 version: 0.0.4
3 cabal-version: >= 1.8
4 author: Michael Orlitzky
5 maintainer: Michael Orlitzky <michael@orlitzky.com>
6 homepage: http://michael.orlitzky.com/code/email-validator.xhtml
7 category: Utils
8 license: AGPL-3
9 license-file: doc/LICENSE
10 build-type: Simple
11 extra-source-files:
12 doc/man1/email-validator.1
13 synopsis:
14 Perform basic syntax and deliverability checks on email addresses.
15 description:
16 Validate an email address using three techniques:
17 .
18 * Ensuring that the length of local and domain parts is within the
19 RFC-specified limits.
20 .
21 * A syntax check using a regular expression, or the full RFC 5322
22 grammar (see the @--rfc5322@ option).
23 .
24 * Confirmation of the existence of an @MX@ record for the domain part of
25 the address. This is not required; in fact many domains accept mail
26 via an @A@ record for e.g. example.com which is used in lieu of an @MX@
27 record. This behavior can be controlled via the @--accept-a@ flag.
28 .
29 These checks are performed in parallel using the number of available
30 threads. To increase the number of threads, you can pass the
31 appropriate flag to the GHC runtime.
32 .
33 This will set the number of threads to 25:
34 .
35 @
36 $ email-validator -i addresses.csv +RTS -N25
37 @
38 .
39 /Input/
40 .
41 The @input@ file (default: stdin) should be a list of email addresses,
42 one per line. Empty lines will be ignored.
43 .
44 /Output/
45 .
46 Valid email addresses will be written to the output file (default:
47 stdout), one per line.
48
49
50 executable email-validator
51 build-depends:
52 base < 5,
53 bytestring >= 0.10,
54 cmdargs >= 0.10,
55 directory >= 1.2,
56 dns >= 2,
57 email-validate >= 2,
58 HUnit >= 1.2,
59 parallel-io >= 0.3,
60 pcre-light >= 0.4,
61 tasty >= 0.8,
62 tasty-hunit >= 0.8
63
64 main-is:
65 Main.hs
66
67 hs-source-dirs:
68 src/
69
70 other-modules:
71 CommandLine
72 EmailAddress
73 ExitCodes
74
75 ghc-options:
76 -Wall
77 -fwarn-hi-shadowing
78 -fwarn-missing-signatures
79 -fwarn-name-shadowing
80 -fwarn-orphans
81 -fwarn-type-defaults
82 -fwarn-tabs
83 -fwarn-incomplete-record-updates
84 -fwarn-monomorphism-restriction
85 -fwarn-unused-do-bind
86 -rtsopts
87 -threaded
88 -optc-O3
89 -optc-march=native
90 -O2
91
92 ghc-prof-options:
93 -prof
94 -auto-all
95 -caf-all
96
97
98 test-suite testsuite
99 type: exitcode-stdio-1.0
100 hs-source-dirs: src test
101 main-is: TestSuite.hs
102 build-depends:
103 base < 5,
104 bytestring >= 0.10,
105 cmdargs >= 0.10,
106 directory >= 1.2,
107 dns >= 2,
108 email-validate >= 2,
109 HUnit >= 1.2,
110 parallel-io >= 0.3,
111 pcre-light >= 0.4,
112 tasty >= 0.8,
113 tasty-hunit >= 0.8
114
115 -- It's not entirely clear to me why I have to reproduce all of this.
116 ghc-options:
117 -Wall
118 -fwarn-hi-shadowing
119 -fwarn-missing-signatures
120 -fwarn-name-shadowing
121 -fwarn-orphans
122 -fwarn-type-defaults
123 -fwarn-tabs
124 -fwarn-incomplete-record-updates
125 -fwarn-monomorphism-restriction
126 -fwarn-unused-do-bind
127 -rtsopts
128 -threaded
129 -optc-O3
130 -optc-march=native
131 -O2
132
133
134 test-suite doctests
135 type: exitcode-stdio-1.0
136 hs-source-dirs: test
137 main-is: Doctests.hs
138 build-depends:
139 base < 5,
140 -- Additional test dependencies.
141 doctest >= 0.9
142
143 -- It's not entirely clear to me why I have to reproduce all of this.
144 ghc-options:
145 -Wall
146 -fwarn-hi-shadowing
147 -fwarn-missing-signatures
148 -fwarn-name-shadowing
149 -fwarn-orphans
150 -fwarn-type-defaults
151 -fwarn-tabs
152 -fwarn-incomplete-record-updates
153 -fwarn-monomorphism-restriction
154 -fwarn-unused-do-bind
155 -rtsopts
156 -threaded
157 -optc-O3
158 -optc-march=native
159 -O2
160
161
162
163 source-repository head
164 type: git
165 location: http://gitweb.michael.orlitzky.com/email-validator.git
166 branch: master