我正在努力学习如何使用Haskell,但我遇到了一个小障碍。我使用MacOSX 10.12.6并使用以下方法安装Haskell平台:
$ brew cask install haskell-platform没有任何修改。当我尝试用导入的parsec编译程序时,Haskell找不到它:
$ 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:
$ ghc-pkg list | grep -e 'parsec'
attoparsec-0.13.2.0
parsec-3.1.11所以我有几个问题:
发布于 2018-01-26 21:30:57
在8.2.1二进制平台构建中出现了一个错误,并削减了一个新版本以修复您遇到的问题。
有关该错误的详细信息和新版本,请在https://mail.haskell.org/pipermail/haskell-cafe/2017-October/127979.html上提供
https://stackoverflow.com/questions/46500732
复制相似问题