]> gitweb.michael.orlitzky.com - email-validator.git/blob - email-validator.cabal
email-validator.cabal: add missing other-modules.
[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 Paths_email_validator
75
76 ghc-options:
77 -Wall
78 -fwarn-hi-shadowing
79 -fwarn-missing-signatures
80 -fwarn-name-shadowing
81 -fwarn-orphans
82 -fwarn-type-defaults
83 -fwarn-tabs
84 -fwarn-incomplete-record-updates
85 -fwarn-monomorphism-restriction
86 -fwarn-unused-do-bind
87 -rtsopts
88 -threaded
89 -optc-O3
90 -optc-march=native
91 -O2
92
93 ghc-prof-options:
94 -prof
95 -auto-all
96 -caf-all
97
98
99 test-suite testsuite
100 type: exitcode-stdio-1.0
101 hs-source-dirs: src test
102 main-is: TestSuite.hs
103
104 build-depends:
105 base < 5,
106 bytestring >= 0.10,
107 cmdargs >= 0.10,
108 directory >= 1.2,
109 dns >= 2,
110 email-validate >= 2,
111 HUnit >= 1.2,
112 parallel-io >= 0.3,
113 pcre-light >= 0.4,
114 tasty >= 0.8,
115 tasty-hunit >= 0.8
116
117 other-modules:
118 EmailAddress
119
120 -- It's not entirely clear to me why I have to reproduce all of this.
121 ghc-options:
122 -Wall
123 -fwarn-hi-shadowing
124 -fwarn-missing-signatures
125 -fwarn-name-shadowing
126 -fwarn-orphans
127 -fwarn-type-defaults
128 -fwarn-tabs
129 -fwarn-incomplete-record-updates
130 -fwarn-monomorphism-restriction
131 -fwarn-unused-do-bind
132 -rtsopts
133 -threaded
134 -optc-O3
135 -optc-march=native
136 -O2
137
138
139 test-suite doctests
140 type: exitcode-stdio-1.0
141 hs-source-dirs: test
142 main-is: Doctests.hs
143 build-depends:
144 base < 5,
145 -- Additional test dependencies.
146 doctest >= 0.9
147
148 -- It's not entirely clear to me why I have to reproduce all of this.
149 ghc-options:
150 -Wall
151 -fwarn-hi-shadowing
152 -fwarn-missing-signatures
153 -fwarn-name-shadowing
154 -fwarn-orphans
155 -fwarn-type-defaults
156 -fwarn-tabs
157 -fwarn-incomplete-record-updates
158 -fwarn-monomorphism-restriction
159 -fwarn-unused-do-bind
160 -rtsopts
161 -threaded
162 -optc-O3
163 -optc-march=native
164 -O2
165
166
167
168 source-repository head
169 type: git
170 location: http://gitweb.michael.orlitzky.com/email-validator.git
171 branch: master