]> gitweb.michael.orlitzky.com - email-validator.git/blob - email-validator.cabal
email-validator.cabal: update to v1.0.1.
[email-validator.git] / email-validator.cabal
1 name: email-validator
2 version: 1.0.0
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 +RTS -N25 < addresses.csv
37 @
38 .
39 /Input/
40 .
41 The @input@ (via 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 stdout, one per line.
47
48
49 executable email-validator
50 build-depends:
51 base < 5,
52 bytestring >= 0.10,
53 cmdargs >= 0.10,
54 dns >= 2,
55 email-validate >= 2,
56 HUnit >= 1.2,
57 parallel-io >= 0.3,
58 pcre-light >= 0.4,
59 tasty >= 0.8,
60 tasty-hunit >= 0.8
61
62 main-is:
63 Main.hs
64
65 hs-source-dirs:
66 src/
67
68 other-modules:
69 CommandLine
70 EmailAddress
71 Paths_email_validator
72
73 ghc-options:
74 -Weverything
75 -Wno-implicit-prelude
76 -Wno-safe
77 -Wno-unsafe
78 -Wno-all-missed-specialisations
79 -rtsopts
80 -threaded
81 -optc-O3
82 -optc-march=native
83 -O2
84
85
86 test-suite testsuite
87 type: exitcode-stdio-1.0
88 hs-source-dirs: src test
89 main-is: TestSuite.hs
90
91 build-depends:
92 base < 5,
93 bytestring >= 0.10,
94 cmdargs >= 0.10,
95 dns >= 2,
96 email-validate >= 2,
97 HUnit >= 1.2,
98 parallel-io >= 0.3,
99 pcre-light >= 0.4,
100 tasty >= 0.8,
101 tasty-hunit >= 0.8
102
103 other-modules:
104 EmailAddress
105
106 -- It's not entirely clear to me why I have to reproduce all of this.
107 ghc-options:
108 -Weverything
109 -Wno-implicit-prelude
110 -Wno-safe
111 -Wno-unsafe
112 -Wno-all-missed-specialisations
113 -rtsopts
114 -threaded
115 -optc-O3
116 -optc-march=native
117 -O2
118
119
120 test-suite doctests
121 type: exitcode-stdio-1.0
122 hs-source-dirs: test
123 main-is: Doctests.hs
124 build-depends:
125 base < 5,
126 -- Additional test dependencies.
127 doctest >= 0.9
128
129 -- It's not entirely clear to me why I have to reproduce all of this.
130 ghc-options:
131 -Wall
132 -fwarn-hi-shadowing
133 -fwarn-missing-signatures
134 -fwarn-name-shadowing
135 -fwarn-orphans
136 -fwarn-type-defaults
137 -fwarn-tabs
138 -fwarn-incomplete-record-updates
139 -fwarn-monomorphism-restriction
140 -fwarn-unused-do-bind
141 -rtsopts
142 -threaded
143 -optc-O3
144 -optc-march=native
145 -O2
146
147
148
149 source-repository head
150 type: git
151 location: http://gitweb.michael.orlitzky.com/email-validator.git
152 branch: master