cabal-install

Upgrade Cabal on Ubuntu 14.04

爷,独闯天下 提交于 2019-12-01 15:48:29
问题 When I install Haskell/GHC+cabal via sudo apt-get I installed cabal version 1.16. This is obviously not the most up to date version. How would I go about upgrade to at least version 1.18? I tried doing sudo apt-get update and sudo apt-get upgrade . Edit: Also when I run cabal install cabal-install it appears to "install" version 1.20 but when I run cabal -V it says cabal 1.16.0 回答1: Fixed it by adding the following line to my ~/.profile : export PATH=$(HOME)/.cabal/bin:$PATH 来源: https:/

Install Cabal-dev on windows 7

好久不见. 提交于 2019-12-01 12:31:43
I'm trying to install Cabal-dev on windows 7. I've managed to get past the problem with not being able to build network by using this: cabal install --constraint="network installed" cabal-dev However then I get this: >cabal install --constraint="network installed" cabal-dev Resolving dependencies... cabal: Could not resolve dependencies: trying: cabal-dev-0.9.1 trying: cabal-dev-0.9.1:-no-cabal-dev trying: network-2.3.1.0/installed-489... rejecting: parsec-3.1.3/installed-62e... (conflict: network => parsec==3.1.3/installed-c65...) rejecting: parsec-3.1.3/installed-c65... (conflict: parsec =>

Network-2.4.2.2 error cabal install on Windows

不打扰是莪最后的温柔 提交于 2019-12-01 07:59:07
问题 When attempting to install the network package (cabal install network) on Windows Server 2008 inside of a cabal sandbox (1.18.*) I get the following error: C:\Users\user\Project>cabal install network --prefix=C:\Users\user\Project Resolving dependencies... Configuring network-2.4.2.2... configure: error: invalid package name: 0 Failed to install network-2.4.2.2 cabal: Error: some packages failed to install: network-2.4.2.2 failed during the configure step. The exception was: ExitFailure 1

Haskell package installed but not found

只愿长相守 提交于 2019-12-01 06:43:21
I installed diagrams, and it seems to be there, but GHCi doesn’t find it. I tried adding the local sandbox to the command line (-package-db), but still no luck. Any suggestions? C:\Users\guthrie> C:\Users\guthrie>cabal install diagrams Resolving dependencies... All the requested packages are already installed: diagrams-1.2 Use --reinstall if you want to reinstall anyway. I find it in: C:\Users\guthrie\.cabal-sandbox\i386-windows-ghc-7.6.3-packages.conf.d (diagrams-1.2, diagrams-contrib, -core, -lib, -svg) But running: “cabal repl” or using the GHC(i) flag “ -package-db=… ” fail to find it: C:

Haskell package installed but not found

孤人 提交于 2019-12-01 04:21:22
问题 I installed diagrams, and it seems to be there, but GHCi doesn’t find it. I tried adding the local sandbox to the command line (-package-db), but still no luck. Any suggestions? C:\Users\guthrie> C:\Users\guthrie>cabal install diagrams Resolving dependencies... All the requested packages are already installed: diagrams-1.2 Use --reinstall if you want to reinstall anyway. I find it in: C:\Users\guthrie\.cabal-sandbox\i386-windows-ghc-7.6.3-packages.conf.d (diagrams-1.2, diagrams-contrib, -core

Why does Stack not recognize the dependency it just installed?

依然范特西╮ 提交于 2019-11-30 17:51:19
问题 So I'm trying to use reactive-banana + wxHaskell for GUI programming. As a newbie to Haskell and its dev tools, I'm very perplexed by stack. So I try stack install wx , which prompts me to install wxcore , which prompts me to install wxc and wxdirect . After I stack install wxdirect , I try running stack install wxc , but lo and behold: While constructing the BuildPlan the following exceptions were encountered: -- Failure when adding dependencies: wxdirect: needed (>=0.90.1.1), not present in