| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Network.API.Mandrill.Types
Synopsis
- timeParse :: ParseTime t => TimeLocale -> String -> String -> Maybe t
 - 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
 - newtype MandrillEmail = MandrillEmail EmailAddress
 - data MandrillRecipient = MandrillRecipient {}
 - mrec_type :: Lens' MandrillRecipient (Maybe MandrillRecipientTag)
 - mrec_name :: Lens' MandrillRecipient (Maybe Text)
 - mrec_email :: Lens' MandrillRecipient MandrillEmail
 - newRecipient :: EmailAddress -> MandrillRecipient
 - newtype MandrillHtml = MandrillHtml Html
 - unsafeMkMandrillHtml :: Text -> MandrillHtml
 - mkMandrillHtml :: Html -> MandrillHtml
 - type MandrillTags = Text
 - type MandrillHeaders = Object
 - data MergeVar = MergeVar {
- _mv_name :: !Text
 - _mv_content :: Value
 
 - mv_name :: Lens' MergeVar Text
 - mv_content :: Lens' MergeVar Value
 - data MandrillMergeVars = MandrillMergeVars {
- _mmvr_rcpt :: !Text
 - _mmvr_vars :: [MergeVar]
 
 - mmvr_vars :: Lens' MandrillMergeVars [MergeVar]
 - mmvr_rcpt :: Lens' MandrillMergeVars Text
 - data MandrillMetadata = MandrillMetadata {
- _mmdt_rcpt :: !Text
 - _mmdt_values :: Object
 
 - mmdt_values :: Lens' MandrillMetadata Object
 - mmdt_rcpt :: Lens' MandrillMetadata Text
 - data Base64ByteString
 - 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 :: MandrillEmail
 - _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 :: [MergeVar]
 - _mmsg_merge_vars :: [MandrillMergeVars]
 - _mmsg_tags :: [MandrillTags]
 - _mmsg_subaccount :: Maybe Text
 - _mmsg_google_analytics_domains :: [Text]
 - _mmsg_google_analytics_campaign :: Maybe Text
 - _mmsg_metadata :: Object
 - _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 Object
 - 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 [MergeVar]
 - mmsg_from_name :: Lens' MandrillMessage (Maybe Text)
 - mmsg_from_email :: Lens' MandrillMessage MandrillEmail
 - 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]
 - data MandrillTemplateContent = MandrillTemplateContent {
- _mtc_name :: Text
 - _mtc_content :: Text
 
 - mtc_name :: Lens' MandrillTemplateContent Text
 - mtc_content :: Lens' MandrillTemplateContent Text
 - type MandrillKey = Text
 - type MandrillTemplate = Text
 - newtype MandrillDate = MandrillDate {}
 
Documentation
data MandrillError Source #
Constructors
| MandrillError | |
Fields 
  | |
Instances
| Eq MandrillError Source # | |
Defined in Network.API.Mandrill.Types Methods (==) :: MandrillError -> MandrillError -> Bool # (/=) :: MandrillError -> MandrillError -> Bool #  | |
| Show MandrillError Source # | |
Defined in Network.API.Mandrill.Types Methods showsPrec :: Int -> MandrillError -> ShowS # show :: MandrillError -> String # showList :: [MandrillError] -> ShowS #  | |
| ToJSON MandrillError Source # | |
Defined in Network.API.Mandrill.Types Methods toJSON :: MandrillError -> Value # toEncoding :: MandrillError -> Encoding # toJSONList :: [MandrillError] -> Value # toEncodingList :: [MandrillError] -> Encoding #  | |
| FromJSON MandrillError Source # | |
Defined in Network.API.Mandrill.Types Methods parseJSON :: Value -> Parser MandrillError # parseJSONList :: Value -> Parser [MandrillError] #  | |
data MandrillEmailStatus Source #
Constructors
| ES_Sent | |
| ES_Queued | |
| ES_Scheduled | |
| ES_Rejected | |
| ES_Invalid | 
Instances
| Show MandrillEmailStatus Source # | |
Defined in Network.API.Mandrill.Types Methods showsPrec :: Int -> MandrillEmailStatus -> ShowS # show :: MandrillEmailStatus -> String # showList :: [MandrillEmailStatus] -> ShowS #  | |
| ToJSON MandrillEmailStatus Source # | |
Defined in Network.API.Mandrill.Types Methods toJSON :: MandrillEmailStatus -> Value # toEncoding :: MandrillEmailStatus -> Encoding # toJSONList :: [MandrillEmailStatus] -> Value # toEncodingList :: [MandrillEmailStatus] -> Encoding #  | |
| FromJSON MandrillEmailStatus Source # | |
Defined in Network.API.Mandrill.Types Methods parseJSON :: Value -> Parser MandrillEmailStatus # parseJSONList :: Value -> Parser [MandrillEmailStatus] #  | |
data MandrillRejectReason Source #
Constructors
| RR_HardBounce | |
| RR_SoftBounce | |
| RR_Spam | |
| RR_Unsub | |
| RR_Custom | |
| RR_InvalidSender | |
| RR_Invalid | |
| RR_TestModeLimit | |
| RR_Unsigned | |
| RR_Rule | 
Instances
| Show MandrillRejectReason Source # | |
Defined in Network.API.Mandrill.Types Methods showsPrec :: Int -> MandrillRejectReason -> ShowS # show :: MandrillRejectReason -> String # showList :: [MandrillRejectReason] -> ShowS #  | |
| ToJSON MandrillRejectReason Source # | |
Defined in Network.API.Mandrill.Types Methods toJSON :: MandrillRejectReason -> Value # toEncoding :: MandrillRejectReason -> Encoding # toJSONList :: [MandrillRejectReason] -> Value # toEncodingList :: [MandrillRejectReason] -> Encoding #  | |
| FromJSON MandrillRejectReason Source # | |
Defined in Network.API.Mandrill.Types Methods parseJSON :: Value -> Parser MandrillRejectReason # parseJSONList :: Value -> Parser [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.
Constructors
| MandrillSuccess k | |
| MandrillFailure MandrillError | 
Instances
data MandrillRecipientTag Source #
Instances
| Show MandrillRecipientTag Source # | |
Defined in Network.API.Mandrill.Types Methods showsPrec :: Int -> MandrillRecipientTag -> ShowS # show :: MandrillRecipientTag -> String # showList :: [MandrillRecipientTag] -> ShowS #  | |
| ToJSON MandrillRecipientTag Source # | |
Defined in Network.API.Mandrill.Types Methods toJSON :: MandrillRecipientTag -> Value # toEncoding :: MandrillRecipientTag -> Encoding # toJSONList :: [MandrillRecipientTag] -> Value # toEncodingList :: [MandrillRecipientTag] -> Encoding #  | |
| FromJSON MandrillRecipientTag Source # | |
Defined in Network.API.Mandrill.Types Methods parseJSON :: Value -> Parser MandrillRecipientTag # parseJSONList :: Value -> Parser [MandrillRecipientTag] #  | |
newtype MandrillEmail Source #
Constructors
| MandrillEmail EmailAddress | 
Instances
| Show MandrillEmail Source # | |
Defined in Network.API.Mandrill.Types Methods showsPrec :: Int -> MandrillEmail -> ShowS # show :: MandrillEmail -> String # showList :: [MandrillEmail] -> ShowS #  | |
| ToJSON MandrillEmail Source # | |
Defined in Network.API.Mandrill.Types Methods toJSON :: MandrillEmail -> Value # toEncoding :: MandrillEmail -> Encoding # toJSONList :: [MandrillEmail] -> Value # toEncodingList :: [MandrillEmail] -> Encoding #  | |
| FromJSON MandrillEmail Source # | |
Defined in Network.API.Mandrill.Types Methods parseJSON :: Value -> Parser MandrillEmail # parseJSONList :: Value -> Parser [MandrillEmail] #  | |
data MandrillRecipient Source #
An array of recipient information.
Constructors
| MandrillRecipient | |
Fields 
  | |
Instances
| Show MandrillRecipient Source # | |
Defined in Network.API.Mandrill.Types Methods showsPrec :: Int -> MandrillRecipient -> ShowS # show :: MandrillRecipient -> String # showList :: [MandrillRecipient] -> ShowS #  | |
| Arbitrary MandrillRecipient Source # | |
Defined in Network.API.Mandrill.Types  | |
| ToJSON MandrillRecipient Source # | |
Defined in Network.API.Mandrill.Types Methods toJSON :: MandrillRecipient -> Value # toEncoding :: MandrillRecipient -> Encoding # toJSONList :: [MandrillRecipient] -> Value # toEncodingList :: [MandrillRecipient] -> Encoding #  | |
| FromJSON MandrillRecipient Source # | |
Defined in Network.API.Mandrill.Types Methods parseJSON :: Value -> Parser MandrillRecipient # parseJSONList :: Value -> Parser [MandrillRecipient] #  | |
newtype MandrillHtml Source #
Constructors
| MandrillHtml Html | 
Instances
| Show MandrillHtml Source # | |
Defined in Network.API.Mandrill.Types Methods showsPrec :: Int -> MandrillHtml -> ShowS # show :: MandrillHtml -> String # showList :: [MandrillHtml] -> ShowS #  | |
| Semigroup MandrillHtml Source # | |
Defined in Network.API.Mandrill.Types Methods (<>) :: MandrillHtml -> MandrillHtml -> MandrillHtml # sconcat :: NonEmpty MandrillHtml -> MandrillHtml # stimes :: Integral b => b -> MandrillHtml -> MandrillHtml #  | |
| Monoid MandrillHtml Source # | |
Defined in Network.API.Mandrill.Types Methods mempty :: MandrillHtml # mappend :: MandrillHtml -> MandrillHtml -> MandrillHtml # mconcat :: [MandrillHtml] -> MandrillHtml #  | |
| Arbitrary MandrillHtml Source # | |
Defined in Network.API.Mandrill.Types  | |
| ToJSON MandrillHtml Source # | |
Defined in Network.API.Mandrill.Types Methods toJSON :: MandrillHtml -> Value # toEncoding :: MandrillHtml -> Encoding # toJSONList :: [MandrillHtml] -> Value # toEncodingList :: [MandrillHtml] -> Encoding #  | |
| FromJSON MandrillHtml Source # | |
Defined in Network.API.Mandrill.Types  | |
mkMandrillHtml :: Html -> MandrillHtml Source #
type MandrillTags = Text Source #
type MandrillHeaders = Object Source #
Constructors
| MergeVar | |
Fields 
  | |
data MandrillMergeVars Source #
Constructors
| MandrillMergeVars | |
Fields 
  | |
Instances
| Show MandrillMergeVars Source # | |
Defined in Network.API.Mandrill.Types Methods showsPrec :: Int -> MandrillMergeVars -> ShowS # show :: MandrillMergeVars -> String # showList :: [MandrillMergeVars] -> ShowS #  | |
| ToJSON MandrillMergeVars Source # | |
Defined in Network.API.Mandrill.Types Methods toJSON :: MandrillMergeVars -> Value # toEncoding :: MandrillMergeVars -> Encoding # toJSONList :: [MandrillMergeVars] -> Value # toEncodingList :: [MandrillMergeVars] -> Encoding #  | |
| FromJSON MandrillMergeVars Source # | |
Defined in Network.API.Mandrill.Types Methods parseJSON :: Value -> Parser MandrillMergeVars # parseJSONList :: Value -> Parser [MandrillMergeVars] #  | |
data MandrillMetadata Source #
Constructors
| MandrillMetadata | |
Fields 
  | |
Instances
| Show MandrillMetadata Source # | |
Defined in Network.API.Mandrill.Types Methods showsPrec :: Int -> MandrillMetadata -> ShowS # show :: MandrillMetadata -> String # showList :: [MandrillMetadata] -> ShowS #  | |
| ToJSON MandrillMetadata Source # | |
Defined in Network.API.Mandrill.Types Methods toJSON :: MandrillMetadata -> Value # toEncoding :: MandrillMetadata -> Encoding # toJSONList :: [MandrillMetadata] -> Value # toEncodingList :: [MandrillMetadata] -> Encoding #  | |
| FromJSON MandrillMetadata Source # | |
Defined in Network.API.Mandrill.Types Methods parseJSON :: Value -> Parser MandrillMetadata # parseJSONList :: Value -> Parser [MandrillMetadata] #  | |
data Base64ByteString Source #
Constructors
| EncodedB64BS ByteString | An already-encoded Base64 ByteString.  | 
| PlainBS ByteString | A plain Base64 ByteString which requires encoding.  | 
Instances
| Show Base64ByteString Source # | |
Defined in Network.API.Mandrill.Types Methods showsPrec :: Int -> Base64ByteString -> ShowS # show :: Base64ByteString -> String # showList :: [Base64ByteString] -> ShowS #  | |
| ToJSON Base64ByteString Source # | |
Defined in Network.API.Mandrill.Types Methods toJSON :: Base64ByteString -> Value # toEncoding :: Base64ByteString -> Encoding # toJSONList :: [Base64ByteString] -> Value # toEncodingList :: [Base64ByteString] -> Encoding #  | |
| FromJSON Base64ByteString Source # | |
Defined in Network.API.Mandrill.Types Methods parseJSON :: Value -> Parser Base64ByteString # parseJSONList :: Value -> Parser [Base64ByteString] #  | |
data MandrillWebContent Source #
Constructors
| MandrillWebContent | |
Fields 
  | |
Instances
| Show MandrillWebContent Source # | |
Defined in Network.API.Mandrill.Types Methods showsPrec :: Int -> MandrillWebContent -> ShowS # show :: MandrillWebContent -> String # showList :: [MandrillWebContent] -> ShowS #  | |
| ToJSON MandrillWebContent Source # | |
Defined in Network.API.Mandrill.Types Methods toJSON :: MandrillWebContent -> Value # toEncoding :: MandrillWebContent -> Encoding # toJSONList :: [MandrillWebContent] -> Value # toEncodingList :: [MandrillWebContent] -> Encoding #  | |
| FromJSON MandrillWebContent Source # | |
Defined in Network.API.Mandrill.Types Methods parseJSON :: Value -> Parser MandrillWebContent # parseJSONList :: Value -> Parser [MandrillWebContent] #  | |
data MandrillMessage Source #
The information on the message to send
Constructors
| MandrillMessage | |
Fields 
  | |
Instances
| Show MandrillMessage Source # | |
Defined in Network.API.Mandrill.Types Methods showsPrec :: Int -> MandrillMessage -> ShowS # show :: MandrillMessage -> String # showList :: [MandrillMessage] -> ShowS #  | |
| Arbitrary MandrillMessage Source # | |
Defined in Network.API.Mandrill.Types  | |
| ToJSON MandrillMessage Source # | |
Defined in Network.API.Mandrill.Types Methods toJSON :: MandrillMessage -> Value # toEncoding :: MandrillMessage -> Encoding # toJSONList :: [MandrillMessage] -> Value # toEncodingList :: [MandrillMessage] -> Encoding #  | |
| FromJSON MandrillMessage Source # | |
Defined in Network.API.Mandrill.Types Methods parseJSON :: Value -> Parser MandrillMessage # parseJSONList :: Value -> Parser [MandrillMessage] #  | |
data MandrillTemplateContent Source #
Key value pair for replacing content in templates via 'Editable Regions'
Constructors
| MandrillTemplateContent | |
Fields 
  | |
Instances
| Show MandrillTemplateContent Source # | |
Defined in Network.API.Mandrill.Types Methods showsPrec :: Int -> MandrillTemplateContent -> ShowS # show :: MandrillTemplateContent -> String # showList :: [MandrillTemplateContent] -> ShowS #  | |
| ToJSON MandrillTemplateContent Source # | |
Defined in Network.API.Mandrill.Types Methods toJSON :: MandrillTemplateContent -> Value # toEncoding :: MandrillTemplateContent -> Encoding # toJSONList :: [MandrillTemplateContent] -> Value #  | |
| FromJSON MandrillTemplateContent Source # | |
Defined in Network.API.Mandrill.Types Methods parseJSON :: Value -> Parser MandrillTemplateContent # parseJSONList :: Value -> Parser [MandrillTemplateContent] #  | |
type MandrillKey = Text Source #
type MandrillTemplate = Text Source #
newtype MandrillDate Source #
Constructors
| MandrillDate | |
Fields  | |
Instances
| Show MandrillDate Source # | |
Defined in Network.API.Mandrill.Types Methods showsPrec :: Int -> MandrillDate -> ShowS # show :: MandrillDate -> String # showList :: [MandrillDate] -> ShowS #  | |
| ToJSON MandrillDate Source # | |
Defined in Network.API.Mandrill.Types Methods toJSON :: MandrillDate -> Value # toEncoding :: MandrillDate -> Encoding # toJSONList :: [MandrillDate] -> Value # toEncodingList :: [MandrillDate] -> Encoding #  | |
| FromJSON MandrillDate Source # | |
Defined in Network.API.Mandrill.Types  | |