【发布时间】:2015-07-04 12:58:47
【问题描述】:
我正在尝试将 Posgres 和 cabal 沙箱用于新项目。我已经安装了postgresql-simple,安装输出证明了这一点:
$ cabal install postgresql-simple
Resolving dependencies...
All the requested packages are already installed:
postgresql-simple-0.4.10.0
Use --reinstall if you want to reinstall anyway.
Notice: installing into a sandbox located at
/Users/inaimathi/projects/hs-test/.cabal-sandbox
但是当我尝试在ghci 中导入库时,我得到了错误
ghci
GHCi, version 7.10.1: http://www.haskell.org/ghc/ :? for help
Prelude> import Database.PostgreSQL.Simple
import Database.PostgreSQL.Simple
<no location info>:
Could not find module ‘Database.PostgreSQL.Simple’
It is not a module in the current program, or in any known package.
Prelude>
谁能指出我做错了什么?
【问题讨论】: