]> gitweb.michael.orlitzky.com - email-validator.git/blob - email-validator.cabal
Allow any 0.x version of tasty and bump to version 0.0.4 again.
[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 category: Utils
7 license: GPL-3
8 license-file: doc/LICENSE
9 build-type: Simple
10 extra-source-files:
11 doc/man1/email-validator.1
12 synopsis:
13 Perform basic syntax and deliverability checks on email addresses.
14 description:
15 Validate an email address using three techniques:
16 .
17 * Ensuring that the length of local and domain parts is within the
18 RFC-specified limits.
19 .
20 * A syntax check using a regular expression, or the full RFC 5322
21 grammar (see the @--rfc5322@ option).
22 .
23 * Confirmation of the existence of an @MX@ record for the domain part of
24 the address. This is not required; in fact many domains accept mail
25 via an @A@ record for e.g. example.com which is used in lieu of an @MX@
26 record. This behavior can be controlled via the @--accept-a@ flag.
27 .
28 These checks are performed in parallel using the number of available
29 threads. To increase the number of threads, you can pass the
30 appropriate flag to the GHC runtime.
31 .
32 This will set the number of threads to 25:
33 .
34 @
35 $ email-validator -i addresses.csv +RTS -N25
36 @
37 .
38 /Input/
39 .
40 The @input@ file (default: stdin) should be a list of email addresses,
41 one per line. Empty lines will be ignored.
42 .
43 /Output/
44 .
45 Valid email addresses will be written to the output file (default:
46 stdout), one per line.
47
48
49 executable email-validator
50 build-depends:
51 base == 4.*,
52 bytestring == 0.10.*,
53 cmdargs == 0.10.*,
54 directory == 1.2.*,
55 dns == 1.*,
56 email-validate == 2.*,
57 HUnit == 1.2.*,
58 parallel-io == 0.3.*,
59 pcre-light >= 0.4,
60 tasty == 0.*,
61 tasty-hunit == 0.8.*
62
63 main-is:
64 Main.hs
65
66 hs-source-dirs:
67 src/
68
69 other-modules:
70 CommandLine
71 EmailAddress
72 ExitCodes
73
74 ghc-options:
75 -Wall
76 -fwarn-hi-shadowing
77 -fwarn-missing-signatures
78 -fwarn-name-shadowing
79 -fwarn-orphans
80 -fwarn-type-defaults
81 -fwarn-tabs
82 -fwarn-incomplete-record-updates
83 -fwarn-monomorphism-restriction
84 -fwarn-unused-do-bind
85 -rtsopts
86 -threaded
87 -optc-O3
88 -optc-march=native
89 -O2
90
91 ghc-prof-options:
92 -prof
93 -auto-all
94 -caf-all
95
96
97 test-suite testsuite
98 type: exitcode-stdio-1.0
99 hs-source-dirs: src test
100 main-is: TestSuite.hs
101 build-depends:
102 base == 4.*,
103 bytestring == 0.10.*,
104 cmdargs == 0.10.*,
105 directory == 1.2.*,
106 dns == 1.*,
107 email-validate == 2.*,
108 HUnit == 1.2.*,
109 parallel-io == 0.3.*,
110 pcre-light >= 0.4,
111 tasty == 0.*,
112 tasty-hunit == 0.8.*
113
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 == 4.*,
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://michael.orlitzky.com/git/email-validator.git
166 branch: master