用 cabal install --global parsec 后,居然找不到?
如题,
cabal install --global parsec 后,
import Parsec 提示:
Could not find module `Parsec':
Use -v to see a list of the files searched for.
ghc-pkg list 的结果是:
mybox ~ # ghc-pkg list
/usr/lib/ghc-6.8.2/package.conf:
Cabal-1.2.3.0, Cabal-1.6.0.1, {HTTP-4000.0.4}, QuickCheck-1.1.0.0,
QuickCheck-2.1.0.1, X11-1.4.5, X11-xft-0.3, array-0.1.0.0,
base-3.0.1.0, bytestring-0.9.0.1, bytestring-0.9.1.4, cairo-0.10.0,
containers-0.1.0.1, directory-1.0.0.0, dotgen-0.2,
filepath-1.1.0.0, (ghc-6.8.2), gio-0.10.0, glade-0.10.0,
glib-0.10.0, gstreamer-0.10.0, gtk-0.10.0, haskell-lexer-1.0,
haskell98-1.0.1.0, hinotify-0.2, hpc-0.5.0.0, html-1.0.1.1,
mtl-1.1.0.0, {network-2.2.0.0}, old-locale-1.0.0.0,
old-time-1.0.0.0, packedstring-0.1.0.0, parsec-2.1.0.1,
pretty-1.0.0.0, process-1.0.0.0, random-1.0.0.0, readline-1.0.1.0,
regex-base-0.93.1, regex-compat-0.91, regex-posix-0.93.1, rts-1.0,
safe-0.2, soegtk-0.10.0, stm-2.1.1.2, template-haskell-2.2.0.0,
time-1.1.2.3, uniplate-1.2.0.3, unix-2.3.0.0, utf8-string-0.3.4,
xmonad-0.8.1, xmonad-contrib-0.8.1, zlib-0.5.0.0
分明是有嘛,怎么提示找不到呢?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
多谢 flw 兄。问题解决了。
import Text.ParserCombinators.Parsec