Safe Haskell | None |
---|
- data Mail = Mail {
- _returnPath :: String
- _date :: Maybe ZonedTime
- _from :: String
- _subject :: String
- _mime :: String
- _charset :: String
- _contentDisposition :: String
- _body :: String
- subject :: Lens' Mail String
- returnPath :: Lens' Mail String
- mime :: Lens' Mail String
- from :: Lens' Mail String
- date :: Lens' Mail (Maybe ZonedTime)
- contentDisposition :: Lens' Mail String
- charset :: Lens' Mail String
- body :: Lens' Mail String
- type Format = (Item, Feed) -> String
- class MailFormatter m where
- formatFrom :: m Format
- formatSubject :: m Format
- formatBody :: m Format
- build :: (Applicative m, MailFormatter m, FeedParser m, Monad m) => TimeZone -> (Item, Feed) -> m Mail
Documentation
|
returnPath :: Lens' Mail StringSource
contentDisposition :: Lens' Mail StringSource
class MailFormatter m whereSource
Monad m => MailFormatter (ReaderT Config m) |
build :: (Applicative m, MailFormatter m, FeedParser m, Monad m) => TimeZone -> (Item, Feed) -> m MailSource
Build mail from a given feed, using builders functions from Settings
.