Haskell:在Windows7上通过cabal安装Yesod/Snap和其他软件包的问题



我是Haskell的新手,正在尝试安装Snap(http://snapframework.com)在Windows 7上。我已经安装了GHCi和阴谋集团。开始做与网站文档中解释的相同的事情,但我有下一个例外:

阴谋集团安装按扣

Resolving dependencies...
Downloading blaze-builder-0.3.3.2...
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>rn"
Failed to install blaze-builder-0.3.3.2
Downloading byteable-0.1.1...
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>rn"
Failed to install byteable-0.1.1
Downloading crypto-api-0.12.2.2...
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>rn"
Failed to install crypto-api-0.12.2.2
Downloading enumerator-0.4.20...
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>rn"
Failed to install enumerator-0.4.20
Downloading extensible-exceptions-0.1.1.4...
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>rn"
Failed to install extensible-exceptions-0.1.1.4
Downloading generic-deriving-1.6.2...
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>rn"
Failed to install generic-deriving-1.6.2
Downloading logict-0.6.0.1...
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>rn"
Failed to install logict-0.6.0.1
Downloading mwc-random-0.13.1.0...
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>rn"
Failed to install mwc-random-0.13.1.0
Downloading safe-0.3.3...
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>rn"
Failed to install safe-0.3.3
Downloading transformers-compat-0.1.1.1...

Yesod也发生了同样的事情,所以似乎要么cabal在Windows7上不是很好,要么在开始通过cabal 安装任何软件包之前需要应用一些神奇的配置

但即使我进行

C:UsersBogdan>cabal update

有相同的问题

Downloading the latest package list from hackage.haskell.org
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>rn"
cabal: Network.Browser.request: Error raised ErrorParse "parseResponseHead
Response status line parse failure: <html>rn"

我当然可以上网浏览。如果是防火墙或代理问题,只会发生在Haskell身上。它是否使用了一些特殊的配置文件?

如果您使用代理,您可能需要将代理设置添加为HTTP_PROXYHTTPS_PROXY的环境变量,而不是简单地依赖于适用于web浏览器的代理自动配置。

最新更新