Yesod:找不到模块“Yesod.Auth.Account”

Yesod: Could not find module `Yesod.Auth.Account'

我正在开发一个带有脚手架 Yesod(堆栈)的网站,我必须导入 Yesod.Auth.Account 才能使用内部帐户而不是 openid 或其他帐户。但是当我尝试导入这个模块时,我得到了这个输出:

/usr/home/giulio/Lavori/karmen/src/Foundation.hs:27:1: error:
    Could not find module `Yesod.Auth.Account'
    Use -v to see a list of the files searched for.
   |
27 | import Yesod.Auth.Account
   | ^^^^^^^^^^^^^^^^^^^^^^^^^

我尝试安装模块、构建、使用 stack cleanstack build 但是 没有任何效果。

来自yesod-auth-account package which doesn't seem to be on Stackage. This means you must add it to the extra-deps stanza of your stack.yaml file. Docs here.

大概是这样的:

extra-deps:
- yesod-auth-account-1.4.3

您可能还想使用 stack solver 命令。