]> gitweb.michael.orlitzky.com - email-validator.git/blob - email-validator.cabal
src/ExitCodes.hs: add explicit export list.
[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
94 test-suite testsuite
95 type: exitcode-stdio-1.0
96 hs-source-dirs: src test
97 main-is: TestSuite.hs
98
99 build-depends:
100 base < 5,
101 bytestring >= 0.10,
102 cmdargs >= 0.10,
103 directory >= 1.2,
104 dns >= 2,
105 email-validate >= 2,
106 HUnit >= 1.2,
107 parallel-io >= 0.3,
108 pcre-light >= 0.4,
109 tasty >= 0.8,
110 tasty-hunit >= 0.8
111
112 other-modules:
113 EmailAddress
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