Module
Text.Email.Validate
- Package
- purescript-email-validate
- Repository
- cdepillabout/purescript-email-validate
#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
EmailAddress { domainPart :: String, localPart :: String }
Instances
#toString Source
toString :: EmailAddress -> String
Converts an email address to a 'String'
#localPart Source
localPart :: EmailAddress -> String
#domainPart Source
domainPart :: EmailAddress -> String
#addrSpec Source
addrSpec :: EmailParser EmailAddress
A parser for email addresses.
- Modules
- Text.
Email. Parser - Text.
Email. Validate