Haskell Cabal: Mysterious missing or recursive dependencies

天涯浪子 提交于 2019-12-04 07:29:43

Looks like your packages are broken. ghc-pkg check might complain about some packages; if it does, you could ghc-pkg unregister <pkg> all of them. Otherwise, the best thing is probably to start afresh: save your ~/.cabal/config file, get rid of ~/.ghc and ~/.cabal, and reinstall cabal-install.

Cabal problems like this are fairly common, so you might want to look into mitigating the pain with cabal-dev.

OK, solved it myself:

There is a bug and template-haskell-2.5.0.0 was installed in the system directory of cabal, as well as in my user directory.

When I forcedly unregistered template-haskell in my user directory, everything was fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!