今天当我试图在Geany中编译我的代码时,我遇到了这个错误
Could not find module `Control.Monad.Reader':
it was found in multiple packages: monads-fd-0.1.0.1 mtl-1.1.0.2
Compilation failed.
Run Code Online (Sandbox Code Playgroud)
我为Writer monad得到了同样的东西; 我以为我应该删除其中一个软件包,但我不想打破其他软件包,所以现在应该怎么做,昨天一切正常,没有任何问题.
我尝试通过 Powershell 和 Git Bash 通过 cabal 安装“System.Random”。
得到这个结果。
PS C:\Users\xxx> cabal install random
Resolving dependencies...
Up to date
Warning: You asked to install executables, but there are no executables in
target: random. Perhaps you want to use --lib to install libraries instead.
Run Code Online (Sandbox Code Playgroud)
然后我尝试像这样输入
cabal install --lib random
Resolving dependencies...
and
cabal install random --lib
Run Code Online (Sandbox Code Playgroud)
两个输出 解决依赖关系... 最新没有警告。但 ghci 找不到模块“System.Random”
输入 cabal install random 仍然有相同的结果和警告。