Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data MandrillError = MandrillError {
- _merr_status :: !Text
- _merr_code :: !Int
- _merr_name :: !Text
- _merr_message :: !Text
- merr_status :: Lens' MandrillError Text
- merr_name :: Lens' MandrillError Text
- merr_message :: Lens' MandrillError Text
- merr_code :: Lens' MandrillError Int
- data MandrillEmailStatus
- data MandrillRejectReason
- data MandrillResponse k
- data MandrillRecipientTag
- data MandrillRecipient = MandrillRecipient {
- _mrec_email :: EmailAddress
- _mrec_name :: Maybe Text
- _mrec_type :: Maybe MandrillRecipientTag
- mrec_type :: Lens' MandrillRecipient (Maybe MandrillRecipientTag)
- mrec_name :: Lens' MandrillRecipient (Maybe Text)
- mrec_email :: Lens' MandrillRecipient EmailAddress
- newRecipient :: EmailAddress -> MandrillRecipient
- newtype MandrillHtml = MandrillHtml Html
- unsafeMkMandrillHtml :: Text -> MandrillHtml
- mkMandrillHtml :: Html -> MandrillHtml
- type MandrillTags = Text
- type MandrillHeaders = Value
- type MandrillVars = Value
- data MandrillMergeVars = MandrillMergeVars {
- _mmvr_rcpt :: !Text
- _mmvr_vars :: [MandrillVars]
- mmvr_vars :: Lens' MandrillMergeVars [MandrillVars]
- mmvr_rcpt :: Lens' MandrillMergeVars Text
- data MandrillMetadata = MandrillMetadata {
- _mmdt_rcpt :: !Text
- _mmdt_values :: MandrillVars
- mmdt_values :: Lens' MandrillMetadata MandrillVars
- mmdt_rcpt :: Lens' MandrillMetadata Text
- newtype Base64ByteString = B64BS ByteString
- data MandrillWebContent = MandrillWebContent {
- _mwct_type :: !Text
- _mwct_name :: !Text
- _mwct_content :: !Base64ByteString
- mwct_type :: Lens' MandrillWebContent Text
- mwct_name :: Lens' MandrillWebContent Text
- mwct_content :: Lens' MandrillWebContent Base64ByteString
- data MandrillMessage = MandrillMessage {
- _mmsg_html :: MandrillHtml
- _mmsg_text :: Maybe Text
- _mmsg_subject :: !Text
- _mmsg_from_email :: EmailAddress
- _mmsg_from_name :: Maybe Text
- _mmsg_to :: [MandrillRecipient]
- _mmsg_headers :: MandrillHeaders
- _mmsg_important :: Maybe Bool
- _mmsg_track_opens :: Maybe Bool
- _mmsg_track_clicks :: Maybe Bool
- _mmsg_auto_text :: Maybe Bool
- _mmsg_auto_html :: Maybe Bool
- _mmsg_inline_css :: Maybe Bool
- _mmsg_url_strip_qs :: Maybe Bool
- _mmsg_preserve_recipients :: Maybe Bool
- _mmsg_view_content_link :: Maybe Bool
- _mmsg_bcc_address :: Maybe Text
- _mmsg_tracking_domain :: Maybe Text
- _mmsg_signing_domain :: Maybe Bool
- _mmsg_return_path_domain :: Maybe Bool
- _mmsg_merge :: Maybe Bool
- _mmsg_global_merge_vars :: [MandrillVars]
- _mmsg_merge_vars :: [MandrillMergeVars]
- _mmsg_tags :: [MandrillTags]
- _mmsg_subaccount :: Maybe Text
- _mmsg_google_analytics_domains :: [Text]
- _mmsg_google_analytics_campaign :: Maybe Text
- _mmsg_metadata :: MandrillVars
- _mmsg_recipient_metadata :: [MandrillMetadata]
- _mmsg_attachments :: [MandrillWebContent]
- _mmsg_images :: [MandrillWebContent]
- mmsg_view_content_link :: Lens' MandrillMessage (Maybe Bool)
- mmsg_url_strip_qs :: Lens' MandrillMessage (Maybe Bool)
- mmsg_tracking_domain :: Lens' MandrillMessage (Maybe Text)
- mmsg_track_opens :: Lens' MandrillMessage (Maybe Bool)
- mmsg_track_clicks :: Lens' MandrillMessage (Maybe Bool)
- mmsg_to :: Lens' MandrillMessage [MandrillRecipient]
- mmsg_text :: Lens' MandrillMessage (Maybe Text)
- mmsg_tags :: Lens' MandrillMessage [MandrillTags]
- mmsg_subject :: Lens' MandrillMessage Text
- mmsg_subaccount :: Lens' MandrillMessage (Maybe Text)
- mmsg_signing_domain :: Lens' MandrillMessage (Maybe Bool)
- mmsg_return_path_domain :: Lens' MandrillMessage (Maybe Bool)
- mmsg_recipient_metadata :: Lens' MandrillMessage [MandrillMetadata]
- mmsg_preserve_recipients :: Lens' MandrillMessage (Maybe Bool)
- mmsg_metadata :: Lens' MandrillMessage MandrillVars
- mmsg_merge_vars :: Lens' MandrillMessage [MandrillMergeVars]
- mmsg_merge :: Lens' MandrillMessage (Maybe Bool)
- mmsg_inline_css :: Lens' MandrillMessage (Maybe Bool)
- mmsg_important :: Lens' MandrillMessage (Maybe Bool)
- mmsg_images :: Lens' MandrillMessage [MandrillWebContent]
- mmsg_html :: Lens' MandrillMessage MandrillHtml
- mmsg_headers :: Lens' MandrillMessage MandrillHeaders
- mmsg_google_analytics_domains :: Lens' MandrillMessage [Text]
- mmsg_google_analytics_campaign :: Lens' MandrillMessage (Maybe Text)
- mmsg_global_merge_vars :: Lens' MandrillMessage [MandrillVars]
- mmsg_from_name :: Lens' MandrillMessage (Maybe Text)
- mmsg_from_email :: Lens' MandrillMessage EmailAddress
- mmsg_bcc_address :: Lens' MandrillMessage (Maybe Text)
- mmsg_auto_text :: Lens' MandrillMessage (Maybe Bool)
- mmsg_auto_html :: Lens' MandrillMessage (Maybe Bool)
- mmsg_attachments :: Lens' MandrillMessage [MandrillWebContent]
- type MandrillKey = Text
- newtype MandrillDate = MandrillDate {}
Documentation
data MandrillError Source
MandrillError | |
|
Show MandrillError | |
ToJSON MandrillError | |
FromJSON MandrillError |
merr_status :: Lens' MandrillError Text Source
merr_name :: Lens' MandrillError Text Source
merr_message :: Lens' MandrillError Text Source
merr_code :: Lens' MandrillError Int Source
data MandrillEmailStatus Source
Show MandrillEmailStatus | |
ToJSON MandrillEmailStatus | |
FromJSON MandrillEmailStatus |
data MandrillRejectReason Source
RR_HardBounce | |
RR_SoftBounce | |
RR_Spam | |
RR_Unsub | |
RR_Custom | |
RR_InvalidSender | |
RR_Invalid | |
RR_TestModeLimit | |
RR_Rule |
Show MandrillRejectReason | |
ToJSON MandrillRejectReason | |
FromJSON MandrillRejectReason |
data MandrillResponse k Source
The main datatypes which models the response from the Mandrill API, which can be either a success or a failure.
Show k => Show (MandrillResponse k) | |
FromJSON k => FromJSON (MandrillResponse k) |
data MandrillRecipientTag Source
Show MandrillRecipientTag | |
ToJSON MandrillRecipientTag | |
FromJSON MandrillRecipientTag |
data MandrillRecipient Source
An array of recipient information.
MandrillRecipient | |
|
Show MandrillRecipient | |
ToJSON MandrillRecipient | |
FromJSON MandrillRecipient | |
Arbitrary MandrillRecipient |
mrec_type :: Lens' MandrillRecipient (Maybe MandrillRecipientTag) Source
mrec_name :: Lens' MandrillRecipient (Maybe Text) Source
mrec_email :: Lens' MandrillRecipient EmailAddress Source
newRecipient :: EmailAddress -> MandrillRecipient Source
newtype MandrillHtml Source
MandrillHtml Html |
Show MandrillHtml | |
Monoid MandrillHtml | |
ToJSON MandrillHtml | |
FromJSON MandrillHtml | |
Arbitrary MandrillHtml |
unsafeMkMandrillHtml :: Text -> MandrillHtml Source
mkMandrillHtml :: Html -> MandrillHtml Source
type MandrillTags = Text Source
type MandrillHeaders = Value Source
type MandrillVars = Value Source
data MandrillMergeVars Source
MandrillMergeVars | |
|
Show MandrillMergeVars | |
ToJSON MandrillMergeVars | |
FromJSON MandrillMergeVars |
mmvr_vars :: Lens' MandrillMergeVars [MandrillVars] Source
mmvr_rcpt :: Lens' MandrillMergeVars Text Source
data MandrillMetadata Source
MandrillMetadata | |
|
Show MandrillMetadata | |
ToJSON MandrillMetadata | |
FromJSON MandrillMetadata |
mmdt_values :: Lens' MandrillMetadata MandrillVars Source
mmdt_rcpt :: Lens' MandrillMetadata Text Source
newtype Base64ByteString Source
Show Base64ByteString | |
ToJSON Base64ByteString | |
FromJSON Base64ByteString |
data MandrillWebContent Source
MandrillWebContent | |
|
Show MandrillWebContent | |
ToJSON MandrillWebContent | |
FromJSON MandrillWebContent |
mwct_type :: Lens' MandrillWebContent Text Source
mwct_name :: Lens' MandrillWebContent Text Source
data MandrillMessage Source
The information on the message to send
MandrillMessage | |
|
Show MandrillMessage | |
ToJSON MandrillMessage | |
FromJSON MandrillMessage | |
Arbitrary MandrillMessage |
mmsg_view_content_link :: Lens' MandrillMessage (Maybe Bool) Source
mmsg_url_strip_qs :: Lens' MandrillMessage (Maybe Bool) Source
mmsg_tracking_domain :: Lens' MandrillMessage (Maybe Text) Source
mmsg_track_opens :: Lens' MandrillMessage (Maybe Bool) Source
mmsg_track_clicks :: Lens' MandrillMessage (Maybe Bool) Source
mmsg_to :: Lens' MandrillMessage [MandrillRecipient] Source
mmsg_text :: Lens' MandrillMessage (Maybe Text) Source
mmsg_tags :: Lens' MandrillMessage [MandrillTags] Source
mmsg_subject :: Lens' MandrillMessage Text Source
mmsg_subaccount :: Lens' MandrillMessage (Maybe Text) Source
mmsg_signing_domain :: Lens' MandrillMessage (Maybe Bool) Source
mmsg_return_path_domain :: Lens' MandrillMessage (Maybe Bool) Source
mmsg_preserve_recipients :: Lens' MandrillMessage (Maybe Bool) Source
mmsg_metadata :: Lens' MandrillMessage MandrillVars Source
mmsg_merge_vars :: Lens' MandrillMessage [MandrillMergeVars] Source
mmsg_merge :: Lens' MandrillMessage (Maybe Bool) Source
mmsg_inline_css :: Lens' MandrillMessage (Maybe Bool) Source
mmsg_important :: Lens' MandrillMessage (Maybe Bool) Source
mmsg_images :: Lens' MandrillMessage [MandrillWebContent] Source
mmsg_html :: Lens' MandrillMessage MandrillHtml Source
mmsg_headers :: Lens' MandrillMessage MandrillHeaders Source
mmsg_google_analytics_domains :: Lens' MandrillMessage [Text] Source
mmsg_google_analytics_campaign :: Lens' MandrillMessage (Maybe Text) Source
mmsg_global_merge_vars :: Lens' MandrillMessage [MandrillVars] Source
mmsg_from_name :: Lens' MandrillMessage (Maybe Text) Source
mmsg_from_email :: Lens' MandrillMessage EmailAddress Source
mmsg_bcc_address :: Lens' MandrillMessage (Maybe Text) Source
mmsg_auto_text :: Lens' MandrillMessage (Maybe Bool) Source
mmsg_auto_html :: Lens' MandrillMessage (Maybe Bool) Source
mmsg_attachments :: Lens' MandrillMessage [MandrillWebContent] Source
type MandrillKey = Text Source
newtype MandrillDate Source
Show MandrillDate | |
ToJSON MandrillDate | |
FromJSON MandrillDate |