Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Email = Email {}
- data Attachment = Attachment {}
- defaultEmail :: Email
- data Sent = Sent {}
- ojson :: ToJSON a => Text -> Maybe a -> Maybe (Text, Value)
- oljson :: ToJSON b => Text -> [a] -> ([a] -> b) -> Maybe (Text, Value)
- omjson :: ToJSON a => Text -> Map Text a -> Maybe (Text, Value)
- toText :: ByteString -> Text
Request types
Email data type. It is recommended that you use the defaultEmail function and selector syntax to build an email, e.g.:
defaultEmail { emailFrom = "you@yourdomain.com" , emailTo = "person@example.com" , emailSubject = "This is an example email!" }
data Attachment Source #
defaultEmail :: Email Source #
Response types
Internal Json tools
toText :: ByteString -> Text Source #