]> gitweb.michael.orlitzky.com - email-validator.git/blob - email-validator.cabal
email-validator.cabal: enable more compiler warnings.
[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 -Weverything
78 -Wno-implicit-prelude
79 -Wno-safe
80 -Wno-unsafe
81 -Wno-all-missed-specialisations
82 -rtsopts
83 -threaded
84 -optc-O3
85 -optc-march=native
86 -O2
87
88
89 test-suite testsuite
90 type: exitcode-stdio-1.0
91 hs-source-dirs: src test
92 main-is: TestSuite.hs
93
94 build-depends:
95 base < 5,
96 bytestring >= 0.10,
97 cmdargs >= 0.10,
98 directory >= 1.2,
99 dns >= 2,
100 email-validate >= 2,
101 HUnit >= 1.2,
102 parallel-io >= 0.3,
103 pcre-light >= 0.4,
104 tasty >= 0.8,
105 tasty-hunit >= 0.8
106
107 other-modules:
108 EmailAddress
109
110 -- It's not entirely clear to me why I have to reproduce all of this.
111 ghc-options:
112 -Weverything
113 -Wno-implicit-prelude
114 -Wno-safe
115 -Wno-unsafe
116 -Wno-all-missed-specialisations
117 -rtsopts
118 -threaded
119 -optc-O3
120 -optc-march=native
121 -O2
122
123
124 test-suite doctests
125 type: exitcode-stdio-1.0
126 hs-source-dirs: test
127 main-is: Doctests.hs
128 build-depends:
129 base < 5,
130 -- Additional test dependencies.
131 doctest >= 0.9
132
133 -- It's not entirely clear to me why I have to reproduce all of this.
134 ghc-options:
135 -Wall
136 -fwarn-hi-shadowing
137 -fwarn-missing-signatures
138 -fwarn-name-shadowing
139 -fwarn-orphans
140 -fwarn-type-defaults
141 -fwarn-tabs
142 -fwarn-incomplete-record-updates
143 -fwarn-monomorphism-restriction
144 -fwarn-unused-do-bind
145 -rtsopts
146 -threaded
147 -optc-O3
148 -optc-march=native
149 -O2
150
151
152
153 source-repository head
154 type: git
155 location: http://gitweb.michael.orlitzky.com/email-validator.git
156 branch: master