Safe Haskell | Safe-Infered |
---|
Text.Email.Validate
- isValid :: String -> Bool
- validate :: String -> Either ParseError EmailAddress
- data EmailAddress = EmailAddress {
- localPart :: String
- domainPart :: String
Documentation
Validates whether a particular string is an email address according to RFC5322.
validate :: String -> Either ParseError EmailAddress
If you want to find out why a particular string is not an email address, use this!
data EmailAddress
Constructor does no checking for invalid emails, so use at own risk.
Constructors
EmailAddress | |
Fields
|
Instances