Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
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.
Instances
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