Use MonadIO
This commit is contained in:
parent
a31e397005
commit
587a4e499a
1 changed files with 2 additions and 2 deletions
|
@ -202,9 +202,9 @@ der Matemat
|
||||||
else
|
else
|
||||||
return () -- do nothing
|
return () -- do nothing
|
||||||
|
|
||||||
sendMail :: Text -> Text -> TL.Text -> IO ()
|
sendMail :: MonadIO m => Text -> Text -> TL.Text -> m ()
|
||||||
sendMail to subject body =
|
sendMail to subject body =
|
||||||
renderSendMail
|
liftIO $ renderSendMail
|
||||||
Mail
|
Mail
|
||||||
{ mailFrom = Address Nothing "noreply"
|
{ mailFrom = Address Nothing "noreply"
|
||||||
, mailTo = [Address Nothing to]
|
, mailTo = [Address Nothing to]
|
||||||
|
|
Loading…
Reference in a new issue