]> gitweb.michael.orlitzky.com - email-validator.git/blob - email-validator.cabal
acb9fcaea8e6616408e8b0a41367e2fbe8cd93f3
[email-validator.git] / email-validator.cabal
1 name: email-validator
2 version: 0.0.1
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
39 executable email-validator
40 build-depends:
41 base == 4.*,
42 bytestring == 0.10.*,
43 cmdargs == 0.10.*,
44 directory == 1.2.*,
45 dns == 0.3.*,
46 email-validate == 1.*,
47 HUnit == 1.2.*,
48 parallel-io == 0.3.*,
49 pcre-light >= 0.4,
50 test-framework == 0.8.*,
51 test-framework-hunit == 0.3.*,
52 utf8-string == 0.3.*
53
54 main-is:
55 Main.hs
56
57 hs-source-dirs:
58 src/
59
60 other-modules:
61 CommandLine
62 EmailAddress
63 ExitCodes
64
65 ghc-options:
66 -Wall
67 -fwarn-hi-shadowing
68 -fwarn-missing-signatures
69 -fwarn-name-shadowing
70 -fwarn-orphans
71 -fwarn-type-defaults
72 -fwarn-tabs
73 -fwarn-incomplete-record-updates
74 -fwarn-monomorphism-restriction
75 -fwarn-unused-do-bind
76 -rtsopts
77 -threaded
78 -optc-O3
79 -optc-march=native
80 -O2
81
82 ghc-prof-options:
83 -prof
84 -auto-all
85 -caf-all
86
87
88 test-suite testsuite
89 type: exitcode-stdio-1.0
90 hs-source-dirs: src test
91 main-is: TestSuite.hs
92 build-depends:
93 base == 4.*,
94 bytestring == 0.10.*,
95 cmdargs == 0.10.*,
96 directory == 1.2.*,
97 dns == 0.3.*,
98 email-validate == 1.*,
99 HUnit == 1.2.*,
100 parallel-io == 0.3.*,
101 pcre-light >= 0.4,
102 test-framework == 0.8.*,
103 test-framework-hunit == 0.3.*,
104 utf8-string == 0.3.*
105
106 -- It's not entirely clear to me why I have to reproduce all of this.
107 ghc-options:
108 -Wall
109 -fwarn-hi-shadowing
110 -fwarn-missing-signatures
111 -fwarn-name-shadowing
112 -fwarn-orphans
113 -fwarn-type-defaults
114 -fwarn-tabs
115 -fwarn-incomplete-record-updates
116 -fwarn-monomorphism-restriction
117 -fwarn-unused-do-bind
118 -rtsopts
119 -threaded
120 -optc-O3
121 -optc-march=native
122 -O2
123
124 source-repository head
125 type: git
126 location: http://michael.orlitzky.com/git/email-validator.git
127 branch: master