@@ -19,6 +19,7 @@ import System.Locale (TimeLocale, defaultTimeLocale)
1919#endif
2020import qualified Data.ByteString as B
2121import qualified Data.ByteString.Base64 as Base64
22+import qualified Data.HashMap.Strict as H
2223import qualified Data.Text as T
2324import qualified Data.Text.Encoding as TL
2425import qualified Data.Text.Lazy as TL
@@ -170,7 +171,7 @@ type MandrillTags = T.Text
170171
171172
172173--------------------------------------------------------------------------------
173−type MandrillHeaders = Value
174+type MandrillHeaders = Object
174175
175176
176177--------------------------------------------------------------------------------
@@ -266,7 +267,7 @@ data MandrillMessage = MandrillMessage {
266267 , _mmsg_tracking_domain :: Maybe T.Text
267268 -- ^ a custom domain to use for tracking opens and clicks instead of mandrillapp.com
268269 , _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
270271 -- (for "via" or "on behalf of" in email clients)
271272 , _mmsg_return_path_domain :: Maybe Bool
272273 -- ^ a custom domain to use for the messages's return-path
@@ -319,7 +320,7 @@ instance Arbitrary MandrillMessage where
319320 <*> pure (MandrillEmail . fromJust $ emailAddress "sender@example.com")
320321 <*> pure Nothing
321322 <*> resize 2 arbitrary
322− <*> pure emptyObject
323+ <*> pure H.empty
323324 <*> pure Nothing
324325 <*> pure Nothing
325326 <*> pure Nothing