import Control.Monad.State当我尝试加载包含\n的模块时我得到了
Could not find module \xe2\x80\x98Control.Monad.State\xe2\x80\x99\nPerhaps you meant\n Control.Monad.ST (from base-4.8.2.0)\n Control.Monad.ST.Safe (from base-4.8.2.0)\n Control.Monad.Fix (from base-4.8.2.0)\nUse -v to see a list of the files searched for.\nFailed, modules loaded: none.\nRun Code Online (Sandbox Code Playgroud)\n\n我安装了 Haskell Platform,其中安装了 cabal 和 mtl。
\n\n当我跑步cabal update然后cabal install mtl:
Resolving dependencies...\nAll the requested packages are already installed:\nmtl-2.2.1\nUse --reinstall if you want to reinstall anyway.\nRun Code Online (Sandbox Code Playgroud)\n\n我尝试了重新安装标志,但它只是不断警告我,我将破坏其他软件包,所以我没有继续。
\n\n我的ghc --version是version 7.10.3。cabal --version是1.22.5.0
这是我跑步时得到的结果ghc-pkg list mtl:
WARNING: cache is out of date: Library/Frameworks/GHC.framework/Versions/7.10.3-x86_64/usr/lib/ghc-7.10.3/package.conf.d/package.cache\nghc will see an old view of this package db. Use 'ghc-pkg recache' to fix.\n/Library/Frameworks/GHC.framework/Versions/7.10.3-x86_64/usr/lib/ghc-7.10.3/package.conf.d\n mtl-2.2.1\nRun Code Online (Sandbox Code Playgroud)\n\n当我跑时ghc-pkg check:
WARNING: cache is out of date: /Library/Frameworks/GHC.framework/Versions/7.10.3-x86_64/usr/lib/ghc-7.10.3/package.conf.d/package.cache\nghc will see an old view of this package db. Use 'ghc-pkg recache' to fix.\nRun Code Online (Sandbox Code Playgroud)\n\n当我跑的时候ghc-pkg recache
ghc-pkg: /Library/Frameworks/GHC.framework/Versions/7.10.3-x86_64/usr/lib/ghc-7.10.3/package.conf.d/package.cache: you don't have permission to modify this file\nRun Code Online (Sandbox Code Playgroud)\n
| 归档时间: |
|
| 查看次数: |
6394 次 |
| 最近记录: |