- isValid :: String -> Bool
- validate :: String -> Either ParseError EmailAddress
- data EmailAddress = EmailAddress {
- localPart :: String
- domainPart :: String
Documentation
isValid :: String -> BoolSource
Validates whether a particular string is an email address according to RFC5322.
validate :: String -> Either ParseError EmailAddressSource
If you want to find out why a particular string is not an email address, use this!
data EmailAddress Source
Constructor does no checking for invalid emails, so use at own risk.