mandrill-0.5.3.6: Library for interfacing with the Mandrill JSON API

Safe HaskellNone
LanguageHaskell2010

Network.API.Mandrill.Types

Synopsis

Documentation

data MandrillResponse k Source #

The main datatypes which models the response from the Mandrill API, which can be either a success or a failure.

Instances
Functor MandrillResponse Source # 
Instance details

Defined in Network.API.Mandrill.Types

Methods

fmap :: (a -> b) -> MandrillResponse a -> MandrillResponse b #

(<$) :: a -> MandrillResponse b -> MandrillResponse a #

Foldable MandrillResponse Source # 
Instance details

Defined in Network.API.Mandrill.Types

Methods

fold :: Monoid m => MandrillResponse m -> m #

foldMap :: Monoid m => (a -> m) -> MandrillResponse a -> m #

foldr :: (a -> b -> b) -> b -> MandrillResponse a -> b #

foldr' :: (a -> b -> b) -> b -> MandrillResponse a -> b #

foldl :: (b -> a -> b) -> b -> MandrillResponse a -> b #

foldl' :: (b -> a -> b) -> b -> MandrillResponse a -> b #

foldr1 :: (a -> a -> a) -> MandrillResponse a -> a #

foldl1 :: (a -> a -> a) -> MandrillResponse a -> a #

toList :: MandrillResponse a -> [a] #

null :: MandrillResponse a -> Bool #

length :: MandrillResponse a -> Int #

elem :: Eq a => a -> MandrillResponse a -> Bool #

maximum :: Ord a => MandrillResponse a -> a #

minimum :: Ord a => MandrillResponse a -> a #

sum :: Num a => MandrillResponse a -> a #

product :: Num a => MandrillResponse a -> a #

Traversable MandrillResponse Source # 
Instance details

Defined in Network.API.Mandrill.Types

Methods

traverse :: Applicative f => (a -> f b) -> MandrillResponse a -> f (MandrillResponse b) #

sequenceA :: Applicative f => MandrillResponse (f a) -> f (MandrillResponse a) #

mapM :: Monad m => (a -> m b) -> MandrillResponse a -> m (MandrillResponse b) #

sequence :: Monad m => MandrillResponse (m a) -> m (MandrillResponse a) #

Eq k => Eq (MandrillResponse k) Source # 
Instance details

Defined in Network.API.Mandrill.Types

Show k => Show (MandrillResponse k) Source # 
Instance details

Defined in Network.API.Mandrill.Types

FromJSON k => FromJSON (MandrillResponse k) Source # 
Instance details

Defined in Network.API.Mandrill.Types

data MandrillRecipient Source #

An array of recipient information.

Constructors

MandrillRecipient 

Fields

data MandrillMessage Source #

The information on the message to send

Constructors

MandrillMessage 

Fields