Module

Text.Email.Validate

#isValid

isValid :: String -> Boolean

Validates whether a particular string is an email address

#validate

validate :: String -> Either String EmailAddress

If you want to find out why a particular string is not

#emailAddress

emailAddress :: String -> Maybe EmailAddress

Smart constructor for an email address

#canonicalizeEmail

canonicalizeEmail :: String -> Maybe String

Checks that an email is valid and returns a version of it

#runEmailParser

runEmailParser :: String -> Either ParseError EmailAddress

Run a parser for an input string, returning either an error or a result.

Re-exports from Text.Email.Parser

#EmailAddress

newtype EmailAddress

Represents an email address.

Constructors

Instances

#toString

toString :: EmailAddress -> String

Converts an email address to a 'String'

#addrSpec

addrSpec :: EmailParser EmailAddress

A parser for email addresses.

Modules