我也在使用带有 cygwin 的 Windows 7。
从二月份开始,我已经在 Haskell 平台上安装了 happstack-hsp。
我刚从四月安装了 Haskell 平台。我尝试通过 cabal 安装 happstack-hsp 包并得到以下错误:
$cabal install happstack-hsp
Resolving dependencies...
Configuring hsp-0.7.1...
Building hsp-0.7.1...
Preprocessing library hsp-0.7.1...
ghc.exe: could not execute: trhsx
cabal.exe: Error: some packages failed to install:
happstack-hsp-7.1.1 depends on hsp-0.7.1 which failed to install.
hsp-0.7.1 failed during the building phase. The exception was:
ExitFailure 1
我试图然后安装 trhsx,并得到了这个错误:
$cabal install trhsx
Resolving dependencies...
Configuring trhsx-0.2.2...
Building trhsx-0.2.2...
Preprocessing library trhsx-0.2.2...
Trhsx.hs:1:1:
Could not find module `Prelude'
It is a member of the hidden package `base'.
Perhaps you need to add `base' to the build-depends in your .cabal file.
It is a member of the hidden package `haskell2010-1.1.0.1'.
Perhaps you need to add `haskell2010' to the build-depends in your .cabal file.
It is a member of the hidden package `haskell98-2.0.0.1'.
Perhaps you need to add `haskell98' to the build-depends in your .cabal file.
Use -v to see a list of the files searched for.
cabal.exe: Error: some packages failed to install:
trhsx-0.2.2 failed during the building phase. The exception was:
ExitFailure 1
我也在cmd中试过这个,得到了同样的结果。我使用haskell已经很多年了,它发生了很大的变化,有什么想法吗?