【发布时间】:2013-12-19 13:16:02
【问题描述】:
我正在尝试使用http://hackage.haskell.org/package/persistent-1.2.3.0,但是通过“cabal install persistent”安装它后,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 检查”;安装以前的版本;使用和不使用“sudo”和/或“--global”重新安装。
【问题讨论】:
标签: haskell persistent