Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
initMailer :: Mailer Source #
Make an instance of Mailer with default sendMail implementation, for use in settings where mailer is not being mocked
Parts of mailer that can be mocked
sendMail :: MonadMail c m => [Either ByteString Account] -> [Either ByteString Account] -> Text -> Text -> m () Source #
wrapText :: Int64 -> Text -> Text Source #
Wrap text to the given line length where possibleby changing some ' ' to '\n'. >>> wrapText 10 $ TL.pack "hello there this is a test wherethereareexactlyvery long.nLines.nnThing with multiple.n" "hellonthere thisnis a testnwherethereareexactlyverynlong.nLines.nnThing withnmultiple.n"