Module

Text.Email.Validate

Package
purescript-email-validate
Repository
cdepillabout/purescript-email-validate

#isValid Source

isValid :: String -> Boolean

Validates whether a particular string is an email address

#validate Source

validate :: String -> Either String EmailAddress

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

#emailAddress Source

emailAddress :: String -> Maybe EmailAddress

Smart constructor for an email address

#canonicalizeEmail Source

canonicalizeEmail :: String -> Maybe String

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

#runEmailParser Source

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 Source

newtype EmailAddress

Represents an email address.

Constructors

Instances

#toString Source

toString :: EmailAddress -> String

Converts an email address to a 'String'

#addrSpec Source

addrSpec :: EmailParser EmailAddress

A parser for email addresses.