我試圖使用http://hackage.haskell.org/package/persistent-1.2.3.0,而是通過安裝它後,「陰謀安裝老大難」,GHC沒有找到其暴露的模塊:持久模塊沒有找到
Prelude> import Database.Persist.Types
<no location info>:
Could not find module `Database.Persist.Types'
It is not a module in the current program, or in any known package.
而且GHC-PKG正常工作:
$ ghc-pkg find-module Database.Persist.Types
/var/lib/ghc/package.conf.d
/home/apsk/.ghc/x86_64-linux-7.6.3/package.conf.d
persistent-1.2.3.0
我錯過了什麼,或者這只是一個錯誤與cabal/persistent/ghc?我的ghc是7.6.3,順便說一句。
另外,我試過沒有效果:「ghc-pkg recache」; 「ghc-pkg check」;安裝以前的版本;使用和不使用「sudo」和/或「--global」重新安裝。
謝謝,麻煩是在多個cabals。 – aemxdp