Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data AccessLevel Source #
Instances
encodeAccessLevel :: AccessLevel -> Text Source #
data MailingList f Source #
MailingList | |
|
Instances
Show (MailingList Identity) Source # | |
Defined in Network.Mail.Mailgun.List | |
Applicative f => FromJSON (MailingList f) Source # | |
Defined in Network.Mail.Mailgun.List parseJSON :: Value -> Parser (MailingList f) parseJSONList :: Value -> Parser [MailingList f] | |
ToJSON (MailingList Identity) Source # | |
Defined in Network.Mail.Mailgun.List toJSON :: MailingList Identity -> Value toEncoding :: MailingList Identity -> Encoding toJSONList :: [MailingList Identity] -> Value toEncodingList :: [MailingList Identity] -> Encoding | |
ToJSON (MailingList (Proxy :: Type -> Type)) Source # | |
Defined in Network.Mail.Mailgun.List 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 #
listAccessLevel :: forall f. Lens' (MailingList f) AccessLevel Source #
data ListMember v Source #
ListMember | |
|
Instances
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 #
getList :: (HasMailgunConfig c, MonadReader c m, MonadIO m, MonadThrow m) => Text -> 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 #