Hi all.
I'm trying to get basic registration/login working on my main Yesod project, so I am trying to get the Yesod.Auth.Email example running on my machine first
https://www.yesodweb.com/book/authentication-and-authorization#authentication-and-authorization_email
I copied the current code from the book as-is into a new file Email.hs and ran:
stack exec runghc Email.hs
And I got
Email.hs:18:1: error:
Could not find module ‘Network.Mail.Mime’
Use -v to see a list of the files searched for.
|
18 | import Network.Mail.Mime
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Taking a first stab after googling, I ran stack install mime-mail which seemed to successfully install the library.
Now I get:
Email.hs:102:15: error: Not in scope: ‘partFilename’
|
102 | , partFilename = Nothing
| ^^^^^^^^^^^^
Has anyone else gotten the tutorial running? Am I missing some setup?