Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
addrSpec :: Parser EmailAddress Source
A parser for email addresses.
localPart :: EmailAddress -> ByteString Source
Extracts the local part of an email address.
domainPart :: EmailAddress -> ByteString Source
Extracts the domain part of an email address.
data EmailAddress Source
Represents an email address.
unsafeEmailAddress :: ByteString -> ByteString -> EmailAddress Source
Creates an email address without validating it. You should only use this when reading data from somewhere it has already been validated (e.g. a database).
toByteString :: EmailAddress -> ByteString Source
Converts an email address back to a ByteString