]> gitweb.michael.orlitzky.com - email-validator.git/blob - email-validator.cabal
Whitespace cleanup in Main, import from EmailAddress explicitly.
[email-validator.git] / email-validator.cabal
1 name: email-validator
2 version: 0.0.3
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 == 1.*,
57 HUnit == 1.2.*,
58 parallel-io == 0.3.*,
59 pcre-light >= 0.4,
60 test-framework == 0.8.*,
61 test-framework-hunit == 0.3.*
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 == 1.*,
108 HUnit == 1.2.*,
109 parallel-io == 0.3.*,
110 pcre-light >= 0.4,
111 test-framework == 0.8.*,
112 test-framework-hunit == 0.3.*
113
114 -- It's not entirely clear to me why I have to reproduce all of this.
115 ghc-options:
116 -Wall
117 -fwarn-hi-shadowing
118 -fwarn-missing-signatures
119 -fwarn-name-shadowing
120 -fwarn-orphans
121 -fwarn-type-defaults
122 -fwarn-tabs
123 -fwarn-incomplete-record-updates
124 -fwarn-monomorphism-restriction
125 -fwarn-unused-do-bind
126 -rtsopts
127 -threaded
128 -optc-O3
129 -optc-march=native
130 -O2
131
132 source-repository head
133 type: git
134 location: http://michael.orlitzky.com/git/email-validator.git
135 branch: master