Chinaunix

标题: 用 cabal install --global parsec 后,居然找不到? [打印本页]

作者: drunkedcat    时间: 2009-04-03 10:52
标题: 用 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

分明是有嘛,怎么提示找不到呢?
作者: flw    时间: 2009-04-03 11:08
import Text.ParserCombinators.Parsec
作者: drunkedcat    时间: 2009-04-03 14:11
多谢 flw 兄。问题解决了。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2