Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- data Address
- address :: ByteString -> ByteString -> Address
- addressLocalPart :: Address -> ByteString
- addressDomain :: Address -> ByteString
- toByteString :: Address -> ByteString
- toLazyByteString :: Address -> ByteString
- parseAddress :: ByteString -> Maybe Address
- addrSpec :: Parser Address
Documentation
Represents an email address
address :: ByteString -> ByteString -> Address Source #
Returns address from local and domain part
addressLocalPart :: Address -> ByteString Source #
Returns local part of address
addressDomain :: Address -> ByteString Source #
Retuns domain part of address
toByteString :: Address -> ByteString Source #
Resulting ByteString has format localPart@domainPart.
toLazyByteString :: Address -> ByteString Source #
Resulting Lazy.ByteString has format localPart@domainPart.
parseAddress :: ByteString -> Maybe Address Source #
Parses a ByteString to Address