mailgun-0.2: API binding for Mailgun

Safe HaskellNone
LanguageHaskell2010

Network.Mail.Mailgun.List

Documentation

data MailingList f Source #

Instances
Show (MailingList Identity) Source # 
Instance details

Defined in Network.Mail.Mailgun.List

Applicative f => FromJSON (MailingList f) Source # 
Instance details

Defined in Network.Mail.Mailgun.List

Methods

parseJSON :: Value -> Parser (MailingList f)

parseJSONList :: Value -> Parser [MailingList f]

ToJSON (MailingList Identity) Source # 
Instance details

Defined in Network.Mail.Mailgun.List

ToJSON (MailingList (Proxy :: Type -> Type)) Source # 
Instance details

Defined in Network.Mail.Mailgun.List

Methods

toJSON :: MailingList Proxy -> Value

toEncoding :: MailingList Proxy -> Encoding

toJSONList :: [MailingList Proxy] -> Value

toEncodingList :: [MailingList Proxy] -> Encoding

listName :: forall f. Lens' (MailingList f) Text Source #

listMemberCount :: forall f. Lens' (MailingList f) (f Integer) Source #

listDescription :: forall f. Lens' (MailingList f) Text Source #

listCreated :: forall f. Lens' (MailingList f) (f UTCTime) Source #

listAddress :: forall f. Lens' (MailingList f) Text Source #

data ListMember v Source #

Constructors

ListMember 
Instances
Eq v => Eq (ListMember v) Source # 
Instance details

Defined in Network.Mail.Mailgun.List

Methods

(==) :: ListMember v -> ListMember v -> Bool #

(/=) :: ListMember v -> ListMember v -> Bool #

Ord v => Ord (ListMember v) Source # 
Instance details

Defined in Network.Mail.Mailgun.List

Show v => Show (ListMember v) Source # 
Instance details

Defined in Network.Mail.Mailgun.List

FromJSON v => FromJSON (ListMember v) Source # 
Instance details

Defined in Network.Mail.Mailgun.List

Methods

parseJSON :: Value -> Parser (ListMember v)

parseJSONList :: Value -> Parser [ListMember v]

ToJSON v => ToJSON (ListMember v) Source # 
Instance details

Defined in Network.Mail.Mailgun.List

Methods

toJSON :: ListMember v -> Value

toEncoding :: ListMember v -> Encoding

toJSONList :: [ListMember v] -> Value

toEncodingList :: [ListMember v] -> Encoding

lmSubscribed :: forall v. Lens' (ListMember v) Bool Source #

lmName :: forall v. Lens' (ListMember v) Text Source #

lmExtra :: forall v v. Lens (ListMember v) (ListMember v) v v Source #

lmAddress :: forall v. Lens' (ListMember v) Text Source #

createList :: (HasMailgunConfig c, MonadReader c m, MonadIO m, MonadThrow m) => MailingList Proxy -> m () Source #

getLists :: (HasMailgunConfig c, MonadReader c m, MonadIO m, MonadThrow m) => SourceT m (MailingList Identity) Source #

removeList :: (HasMailgunConfig c, MonadReader c m, MonadIO m, MonadThrow m) => Text -> m () Source #

listMembers :: (ToJSON v, FromJSON v, HasMailgunConfig c, MonadReader c m, MonadIO m, MonadThrow m) => Maybe Bool -> Text -> SourceT m (ListMember v) Source #

getMember :: (ToJSON v, FromJSON v, HasMailgunConfig c, MonadReader c m, MonadIO m, MonadThrow m) => Text -> Text -> m (ListMember v) Source #

removeMember :: (HasMailgunConfig c, MonadReader c m, MonadIO m, MonadThrow m) => Text -> Text -> m () Source #

addMembers :: (ToJSON v, FromJSON v, HasMailgunConfig c, MonadReader c m, MonadIO m, MonadThrow m) => Bool -> Text -> ProcessT m (ListMember v) (MailingList Identity) Source #