Copy the man page description to the cabal file.
Add a 'doc' target to the makefile.
.SH DESCRIPTION
.P
-We check the validity of an email address using three techniques:
+Validate an email address using three techniques:
.IP \[bu] 2
-We ensure that the length of local and domain parts is within the
+Ensuring that the length of local and domain parts is within the
RFC-specified limits.
.IP \[bu]
-A regular expression is used to check for invalid characters and syntax.
+A syntax check using a regular expression, or the full RFC 5322
+grammar (see the \fB\-\-rfc5322\fR option).
.IP \[bu]
-We confirm the existence of a MX record for the domain part of the
-address. This is not required; in fact many domains accept mail via
-an 'A' record for e.g. example.com which is used in lieu of an MX
-record. This behavior can be controlled via the \fR\-a\fR flag.
+Confirmation of the existence of an \fIMX\fR record for the domain
+part of the address. This is not required; in fact many domains accept
+mail via an \fIA\fR record for e.g. example.com which is used in lieu
+of an \fIMX\fR record. This behavior can be controlled via the
+\fR\-\-accept\-a\fR flag.
.P
These checks are performed in parallel using the number of available
synopsis:
Perform basic syntax and deliverability checks on email addresses.
description:
- Perform basic syntax and deliverability checks on email addresses.
+ Validate an email address using three techniques:
+ .
+ * Ensuring that the length of local and domain parts is within the
+ RFC-specified limits.
+ .
+ * A syntax check using a regular expression, or the full RFC 5322
+ grammar (see the @--rfc5322@ option).
+ .
+ * Confirmation of the existence of an @MX@ record for the domain part of
+ the address. This is not required; in fact many domains accept mail
+ via an @A@ record for e.g. example.com which is used in lieu of an @MX@
+ record. This behavior can be controlled via the @--accept-a@ flag.
+ .
+ These checks are performed in parallel using the number of available
+ threads. To increase the number of threads, you can pass the
+ appropriate flag to the GHC runtime.
+ .
+ This will set the number of threads to 25:
+ .
+ @
+ $ email-validator -i addresses.csv +RTS -N25
+ @
executable email-validator
runghc Setup.hs configure --user --enable-executable-profiling
runghc Setup.hs build
+doc: src/*.hs
+ runghc Setup.hs configure --user
+ runghc Setup.hs hscolour --executables
+ runghc Setup.hs haddock --internal \
+ --executables \
+ --hyperlink-source
+
clean:
runghc Setup.hs clean