Questions tagged [cabal-install]

cabal-install is a package manager and dependency resolver for building and installing Haskell libraries.

cabal-install is a package manager and dependency resolver for building and installing Haskell libraries.

341 questions
6
votes
1 answer

how to manage cabal sandboxes

The current documentation of cabal shows a sandbox subcommand. The respective page on github no longer contains the section on sandboxes. I'm using cabal version 3.2.0.0, but the sandbox subcommand is absent. What is the correct way to manage…
Bernhard Wagner
  • 1,681
  • 12
  • 15
6
votes
1 answer

Cabal cannot find locally sourced (yet correctly installed) packages

I recently upgraded to Cabal 3.2 (and GHC 8.10) and I am running into some major issues that make some of my project non-buildable anymore... Thorough description of the problem Here is a minimal (not) working configuration that fails every time: I…
6
votes
3 answers

starting xmonad

I'm completely new to xmonad but I'd like to start using it to boost my productivity. This is the guide I've been using (I'm using Apple OS X Snow Leopard) http://xmonad.org/tour.html#start So far I've managed to install Haskell-Platform, Cabal,…
Casey Flynn
  • 13,654
  • 23
  • 103
  • 194
6
votes
1 answer

Issues with dependencies when trying to configure Setup.hs despite having dependencies installed

I've been provided with a Setup.hs file, along with another .hs file that contains the source code. Whenever I try to configure the install by the following: runhaskell Setup.hs configure I get the error: Setup: At least the following…
mawhidby
  • 301
  • 3
  • 7
6
votes
1 answer

Cabal install sandbox can't reinstall base or any other dependencies

EDIT FOR FUTURE SOULS STUMBLING ONTO THIS: It would be unwise to copy any of my commands below, do not execute them. Just check out Zeta's answer for why I was approaching this incorrectly. ORIGINAL QUESTION My sandbox seems to be getting caught on…
Mittenchops
  • 18,633
  • 33
  • 128
  • 246
6
votes
1 answer

Why does Stack not recognize the dependency it just installed?

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…
allidoiswin
  • 2,543
  • 1
  • 20
  • 23
6
votes
2 answers

How do I run the tests that are part of an installed/installing Cabal package?

I have a Haskell package I've installed from Hackage, using cabal and would like to run the tests suites that are part of the package, but it isn't clear to me from the cabal documentation how to do this. I've tried: cabal install --reinstall…
orome
  • 45,163
  • 57
  • 202
  • 418
6
votes
2 answers

What is haskellng? What is the difference between 'haskellPackages' and 'haskellngPackages'?

I have been reading this StackOverflow post in which we are advised to use the haskellng package set. I have also read this but I did not understand what haskellng is. I have read this too, but I still don't know what haskellng is. Could someone…
jhegedus
  • 20,244
  • 16
  • 99
  • 167
6
votes
2 answers

Install Haskell packages using cabal without internet connection

I have a machine that doesn't have internet access at all. I installed the Haskell Platform on it using the installer which I got from another machine through a pendrive. Now I want to install the package repa on my home machine which has no…
kjit123
  • 63
  • 4
6
votes
1 answer

Cabal: What does "only already installed instances can be used" mean?

I'm new to Cabal, and this phrase "only already installed instances can be used" doesn't make any sense to me. $ cabal install base==4.7.0.0 Resolving dependencies... cabal: Could not resolve dependencies: next goal: base (user goal) rejecting:…
Chris Martin
  • 30,334
  • 10
  • 78
  • 137
6
votes
2 answers

idris cabal install fails. "The following packages are likely to be broken by the reinstalls"

I first do the cabal update/upgrade process so I have cabal-install-1.20.0.3. Then I do: cabal install idris I get: ... idris-0.9.14.1 (new version) The following packages are likely to be broken by the…
clay
  • 18,138
  • 28
  • 107
  • 192
6
votes
1 answer

cabal test in a sandbox

Let's say I have three of my own packages, A B & C, with dependencies on lots of additional packages in Hackage. I'm using cabal 1.18. C depends on A & B. B depends on A. A & B have test suites. I set up the sandbox like this: cd…
Ashley Yakeley
  • 664
  • 4
  • 11
6
votes
0 answers

how to find where and why cabal fails - could not resolve dependencies

I tried to install few modules this morning to get Eclipse FP to work, scion-browser and buildwrapper failed. [root@localhost ghc-mod]# cabal install scion-browser Resolving dependencies... cabal: Could not resolve dependencies: trying:…
opensourcegeek
  • 5,552
  • 7
  • 43
  • 64
6
votes
1 answer

cabal install hangs installing yesod-platform

The cabal install of yesod-platform hangs downloading xss-sanitize. NetHogs shows no network activity related to this download. $ cabal install yesod-platform Resolving dependencies... Downloading xss-sanitize-0.3.4... Other packages download and…
dsmith
  • 1,978
  • 10
  • 16
6
votes
2 answers

Cabal doesn't update binary symlinks

I'm using OS X 10.8.2 with Haskell Platform 2012.4.0.0. When updating packages with cabal install, the binary symlinks don't get updated to point to the new binary versions. I must delete the symlink manually and reinstall the package. cabal install…
thSoft
  • 21,755
  • 5
  • 88
  • 103