| Safe Haskell | None |
|---|
Network.Api.Postmark.Data
- 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!"
}
Constructors
Response types
Constructors
| Sent | |
Fields | |
Internal Json tools
toText :: ByteString -> TextSource