我正在尝试构建和运行 Hackage 服务器https://github.com/haskell/hackage-server的副本。我按照这里的说明https://github.com/haskell/hackage-server/wiki以及自述文件中的说明。无论我尝试哪种方式,在尝试使用 ghc 7.8.4 和 cabal 1.22 构建时,都会收到以下错误:
Preprocessing executable 'hackage-server' for hackage-server-0.5.0...
Main.hs:40:8:
Could not find module ‘Network.URI’
It is a member of the hidden package ‘network-uri-2.6.0.1’.
Perhaps you need to add ‘network-uri’ to the build-depends in your .cabal file.
It is a member of the hidden package ‘network-2.4.2.3’.
Perhaps you need to add ‘network’ to the build-depends in your .cabal file.
我也尝试过使用最新的 Haskell 平台,我得到了同样的失败信息。
我正在尝试确定这是 hackage-server 当前主分支中的错误,还是与我安装 ghc 或 cabal 的方式有关。
编辑:我再次尝试使用 Ubuntu 14.04 repo haskell-platform(ghc 7.6.3,cabal 1.16)并且发生了同样的错误。