newsletter-0: A basic newsletter implimentation, using various backends.

Safe HaskellNone
LanguageHaskell2010

Network.Mail.Newsletter.Web

Synopsis

Documentation

class HasApiRoot m where Source #

Associated Types

type ApiRoot m Source #

Methods

apiRoot :: m (Proxy (ApiRoot m)) Source #

apiBase :: m URI Source #

class DedupSubscriptions m where Source #

A class to avoid repeated emailing someone even if they sign up multiple times.

Methods

recentlySubscribed :: Address -> m Bool Source #

class HasAllowedOrigins t where Source #

Methods

allowedOrigins :: Lens' t [URIAuth] Source #

class HasClientSessionKey k where Source #

Methods

clientSessionKey :: Lens' k Key Source #

Instances
HasClientSessionKey Key Source # 
Instance details

Defined in Network.Mail.Newsletter.Web.API

Methods

clientSessionKey :: Lens' Key Key Source #

class HasNlTemplates c m | c -> m where Source #

Minimal complete definition

nlTemplates

Methods

nlTemplates :: Lens' c (NlTemplates m) Source #

confirmConfirmed :: HasApiRoot m => Getter c (Address -> m Html) Source #

confirmStart :: HasApiRoot m => Getter c (Address -> m Html) Source #

optInEmail :: HasApiRoot m => Getter c (Address -> m (Address -> Mail)) Source #

subStartPage :: HasApiRoot m => Getter c (Text -> Text -> Text -> Text -> m Html) Source #

subStartSubmitted :: HasApiRoot m => Getter c (Address -> m Html) Source #

unsubConfirmTempl :: HasApiRoot m => Getter c (Address -> m Html) Source #

unsubTempl :: HasApiRoot m => Getter c (Address -> m Html) Source #

Instances
HasNlTemplates (NlTemplates m) m Source # 
Instance details

Defined in Network.Mail.Newsletter.Web.Templates

Methods

nlTemplates :: Lens' (NlTemplates m) (NlTemplates m) Source #

confirmConfirmed :: Getter (NlTemplates m) (Address -> m Html) Source #

confirmStart :: Getter (NlTemplates m) (Address -> m Html) Source #

optInEmail :: Getter (NlTemplates m) (Address -> m (Address -> Mail)) Source #

subStartPage :: Getter (NlTemplates m) (Text -> Text -> Text -> Text -> m Html) Source #

subStartSubmitted :: Getter (NlTemplates m) (Address -> m Html) Source #

unsubConfirmTempl :: Getter (NlTemplates m) (Address -> m Html) Source #

unsubTempl :: Getter (NlTemplates m) (Address -> m Html) Source #

data NlTemplates m Source #

Constructors

NlTemplates 

Fields

Instances
HasNlTemplates (NlTemplates m) m Source # 
Instance details

Defined in Network.Mail.Newsletter.Web.Templates

Methods

nlTemplates :: Lens' (NlTemplates m) (NlTemplates m) Source #

confirmConfirmed :: Getter (NlTemplates m) (Address -> m Html) Source #

confirmStart :: Getter (NlTemplates m) (Address -> m Html) Source #

optInEmail :: Getter (NlTemplates m) (Address -> m (Address -> Mail)) Source #

subStartPage :: Getter (NlTemplates m) (Text -> Text -> Text -> Text -> m Html) Source #

subStartSubmitted :: Getter (NlTemplates m) (Address -> m Html) Source #

unsubConfirmTempl :: Getter (NlTemplates m) (Address -> m Html) Source #

unsubTempl :: Getter (NlTemplates m) (Address -> m Html) Source #