email-validate-2.2.0: Validating an email address string against RFC 5322

Safe HaskellSafe
LanguageHaskell2010

Text.Email.Parser

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.

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