我想使用Haskell一点,因此我看了一下Spock框架。为了开始清理,我从我的Arch机器卸载了所有Haskell相关的东西,并使用各自网站上的安装脚本安装了ghcup、Cabal和Stack。
现在我想跟着。按照建议,尝试用cabal install Spock全局安装Spock会给我一个错误(缩写):
src/Web/Spock/Internal/Wire.hs:43:1: error:
Could not find module ‘Web.Routing.AbstractRouter’
Use -v (or `:set -v` in ghci) to see a lis
当我看过cabal教程时,他们总是说cabal,在cabal init继续问你一堆问题()之后,当我运行cabal命令时,cabal不会这样做,而是猜测一切。无论我在Windows 10上使用cygwin还是cmd,都会发生这种情况。
控制台输出如下:
Warning: The package list for 'hackage.haskell.org' is 20 days old.
Run 'cabal update' to get the latest list of available packages.
Guessing dependencies..
目前,当我尝试安装GOA时,我收到以下消息:
>sudo cabal install goa
Resolving dependencies...
In order, the following would be installed:
directory-1.1.0.2 (reinstall) changes: filepath-1.3.0.0 -> 1.2.0.1
process-1.0.1.5 (new version)
goa-3.1 (new package)
cabal: The following packages are likely to be broken by t
我有个奇怪的情况。我有一个用于正常工作的包,而且没有明显的原因停止运行cabal test。
$ cabal test
The sandbox was created after the package was already configured.
Re-configuring with most recently used options. If this fails, please run
configure manually.
Resolving dependencies...
Configuring dump-0.2.6...
cabal: The following package
我在我的项目中使用。我遇到了cabal和stack的奇怪行为,使我无法充分享受这种方法的好处。cabal和stack都强制版本为格式为cabal,这不包括我为分支使用的另一种版本格式(0.x.x、1.x.x、1.0.x等)。
如果我的.cabal文件中有行.cabal,则在运行cabal build或运行stack init时会得到Parse of field 'version' failed.错误。
有没有一种方法可以禁用对cabal和stack命令的版本解析?有旗帜吗?还是必须请求cabal和stack的开发人员进行这种更改(添加标志、禁用版本解析)?
为什么会有解析呢?它
我正在尝试解决常规cabal install ( )中的另一个bug。在使用cabal解压一个包(在本例中是monadiccp)之后,当我尝试运行Setup.hs时,我得到了依赖错误。
monadiccp-0.7.0> cabal configure
Resolving dependencies...
Configuring monadiccp-0.7.0...
cabal: At least the following dependencies are missing:
monatron -any
上面的命令、runghc Setup.py --user、--global等都会发
我想用性能分析来编译我的程序,所以我运行:
$ cabal configure --enable-executable-profiling
...
$ cabal build
...
Could not find module 'Graphics.UI.GLUT':
Perhaps you havent installed the profiling libraries for package 'GLUT-2.2.2.0'?
...
$ # indeed I have not installed the prof libs for GLUT,
我想使用最简单的方法执行HTTP请求。我决定用管道。这是我的主要文件:
{-# LANGUAGE OverloadedStrings #-}
import Network.HTTP.Conduit -- the main module
-- The streaming interface uses conduits
import Data.Conduit
import Data.Conduit.Binary (sinkFile)
import qualified Data.ByteString.Lazy as L
import Control.Monad.IO.Class (liftIO)
我正在尝试使用堆栈安装wx。我没有全局安装Haskell,也没有使用stack new <app> new-template创建新项目。接下来,我在目录中运行stack install wx并得到一条错误消息:
In the dependencies for wx-0.92.3.0:
wxcore must match >=0.92, but the stack configuration has no specified
version (latest matching version is 0.92.3.0)
遵循建议的操作并重新运行sta
我正在尝试在FreeBSD 8.1上安装GHC和Cabal。我已经安装了GHC7.0.1(因为它是当前的稳定版本),现在尝试安装Cabal (安装cabal-install),但失败了,并显示以下错误消息。
%./Setup configure
Configuring Cabal-1.8.0.4...
Setup: At least the following dependencies are missing:
base >=4 && <3 && >=1 && <5, filepath >=1 &&
我在Ubuntu13.10上,正在尝试安装wxHaskell。我从http://repos.codelite.org/wx3.0/ubuntu/存储库安装了wxWidgets 2.9。
基本的cabal install wx能让我理解
src/cpp/eljgrid.cpp:61:65: error: no matching function for call to ‘wxGridCellEditor::PaintBackground(wxRect, wxGridCellAttr*)’
self->PaintBackground(wxRect(x, y, w, h), (wxGrid
我在试着安装xmonad。首先,我使用以下组件安装ghc编译器:
zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_12.1/devel:languages:haskell.repo
zypper in ghc
之后,我尝试使用以下命令安装阴谋安装-0.14.0:
wget http://hackage.haskell.org/packages/archive/cabal-install/0.14.0/cabal-install-0.14.0.tar.gz
tar