Safe Haskell | None |
---|
- data Mail = Mail {}
- 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
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
.