[英]GHC cannot find libraries on fresh install of Haskell-Platform
I'm trying to learn how to use Haskell, but I've run into a little roadblock.我正在尝试学习如何使用 Haskell,但遇到了一些障碍。 I'm using MacOSX 10.12.6 and installed Haskell Platform using:
我正在使用 MacOSX 10.12.6 并使用以下方法安装 Haskell 平台:
$ brew cask install haskell-platform
with no modifications.没有任何修改。 When I try to compile a program with
parsec
imported, Haskell-Platform can't find it:当我尝试编译导入了
parsec
的程序时,Haskell-Platform 找不到它:
$ ghc -v test.hs
...
package parsec-3.1.11-DPgnR92AWEaFOaixmwipet is unusable due to shadowed dependencies:
mtl-2.2.1-19EL8AGBsN3DnnOhrC9xY3 text-1.2.2.2-EGUst8sqNAZCw1xLPcmcMH
...
test.hs:2:1: error:
Could not find module ‘Text.Parsec’
Locations searched:
Text/Parsec.hs
Text/Parsec.lhs
Text/Parsec.hsig
Text/Parsec.lhsig
|
2 | import Text.Parsec
| ^^^^^^^^^^^^^^^^^^
parsec is installed:安装了解析:
$ ghc-pkg list | grep -e 'parsec'
attoparsec-0.13.2.0
parsec-3.1.11
So I have a few questions:所以我有几个问题:
There was a bug with 8.2.1 binary platform builds, and a new release was cut to fix the issue you encountered. 8.2.1 二进制平台构建存在一个错误,并且已删除新版本以修复您遇到的问题。
Details on the bug, and the new release are provided at https://mail.haskell.org/pipermail/haskell-cafe/2017-October/127979.html有关该错误和新版本的详细信息,请访问https://mail.haskell.org/pipermail/haskell-cafe/2017-October/127979.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.