@@ -19,6 +19,7 @@ import System.Locale (TimeLocale, defaultTimeLocale)
20import qualified Data.ByteString as B
20import qualified Data.ByteString as B
21import qualified Data.ByteString.Base64 as Base64
21import qualified Data.ByteString.Base64 as Base64
22+import qualified Data.HashMap.Strict as H
22import qualified Data.Text as T
23import qualified Data.Text as T
23import qualified Data.Text.Encoding as TL
24import qualified Data.Text.Encoding as TL
24import qualified Data.Text.Lazy as TL
25import qualified Data.Text.Lazy as TL
@@ -170,7 +171,7 @@ type MandrillTags = T.Text
172--------------------------------------------------------------------------------
173--------------------------------------------------------------------------------
173−type MandrillHeaders = Value
174+type MandrillHeaders = Object
176--------------------------------------------------------------------------------
177--------------------------------------------------------------------------------
@@ -266,7 +267,7 @@ data MandrillMessage = MandrillMessage {
266 , _mmsg_tracking_domain :: Maybe T.Text
267 , _mmsg_tracking_domain :: Maybe T.Text
267 -- ^ a custom domain to use for tracking opens and clicks instead of mandrillapp.com
268 -- ^ a custom domain to use for tracking opens and clicks instead of mandrillapp.com
268 , _mmsg_signing_domain :: Maybe Bool
269 , _mmsg_signing_domain :: Maybe Bool
269− -- ^ a custom domain to use for SPF/DKIM signing instead of mandrill
270+ -- ^ a custom domain to use for SPF/DKIM signing instead of mandrill
270 -- (for "via" or "on behalf of" in email clients)
271 -- (for "via" or "on behalf of" in email clients)
271 , _mmsg_return_path_domain :: Maybe Bool
272 , _mmsg_return_path_domain :: Maybe Bool
272 -- ^ a custom domain to use for the messages's return-path
273 -- ^ a custom domain to use for the messages's return-path
@@ -319,7 +320,7 @@ instance Arbitrary MandrillMessage where
319 <*> pure (MandrillEmail . fromJust $ emailAddress "sender@example.com")
320 <*> pure (MandrillEmail . fromJust $ emailAddress "sender@example.com")
320 <*> pure Nothing
321 <*> pure Nothing
321 <*> resize 2 arbitrary
322 <*> resize 2 arbitrary
322− <*> pure emptyObject
323+ <*> pure H.empty
323 <*> pure Nothing
324 <*> pure Nothing
324 <*> pure Nothing
325 <*> pure Nothing
325 <*> pure Nothing
326 <*> pure Nothing