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
3
votes
1 answer

Cabal fails to install dependencies, but can install them if asked directly

I've seen a very strange recurring problem with Cabal that's interfering with my ability to get repeatable Haskell builds. I have a cabal project with a sandbox. If I do cabal install, I get errors of the form Y failed during the building phase. The…
tom
  • 958
  • 6
  • 17
3
votes
1 answer

use cabal2nix to create local nix environment for packages that aren't in nixpkgs

I currently have a Yesod web application that I am developing on NixOS. I am using a default.nix file like described in O'Charles' blog post: { haskellPackages ? (import {}).haskellPackages }: haskellPackages.cabal.mkDerivation (self: { …
illabout
  • 3,517
  • 1
  • 18
  • 39
3
votes
1 answer

2014 haskell cabal update hangs on mac

I initially installed haskell platform ( 2013 version; 7.6.3 ghc ) on my mac. Everything was working great. Just now saw the haskell platform website again and found new version was released ( Haskell Platform 2014.2.0.0 for Mac OS X, 64bit ). I…
madhub
  • 61
  • 3
3
votes
2 answers

How to install `Hat`

I am trying to get the Hat debugger. When I try: cabal install hat OR cabal install hat -v At the end I get: configure: error: in `/tmp/terminfo-0.4.0.0-17745/terminfo-0.4.0.0': configure: error: curses headers could not be found, so this package…
PyRulez
  • 10,513
  • 10
  • 42
  • 87
3
votes
1 answer

Why does cabal think I need an old library?

Just so I can start fresh, I removed package.conf.d at ~/.ghc/x86_64-linux-7.8.2. When I try to install numeric-prelude, cabal tries to install an old version of mtl, even though I have checked all of the dependencies and the newest mtl can be…
crockeea
  • 21,651
  • 10
  • 48
  • 101
3
votes
1 answer

Analog of Ruby Bundler Gemfile/Gemfile.lock for Haskell Cabal

Does there exist an analog of Ruby Bundler's Gemfile and bundle install, bundle exec commands for Haskell Cabal? Here is a related question, but it seems to be mostly about project scaffolding.
Alexey
  • 3,843
  • 6
  • 30
  • 44
3
votes
1 answer

Why can't cabal keep multiple versions of the same package?

Coming from Ruby where I can have as many versions of every gem as I want, it's confusing to me why there is the restriction of Cabal being able to only have one version installed at the same time? I've tried searching for an answer, but couldn't…
Jakub Arnold
  • 85,596
  • 89
  • 230
  • 327
3
votes
1 answer

How to set cabal extra dirs for all packages in a sandbox

I'm currently working on a Haskell project that uses lots of native code. This means that include files and libraries have to be accessible to cabal. I'm doing that by --extra-lib-dirs and --extra-include-dirs command-line flags. I'm also using…
Anton
  • 978
  • 5
  • 11
3
votes
0 answers

Error Installing GLFW-b on OS X

So I'm trying to install Lamdu, and because it relies on GLFW (brew install glfw3)I've had to install that, and the GLFW bindings for Haskell. I cloned the Lamdu repository, cd lamdu, cabal configure, and the only dependencies that it says I don't…
gallabytes
  • 267
  • 1
  • 9
3
votes
1 answer

Cannot install accelerate-cuda in Haskell

I am on a linux box and trying to experiment with Haskell's Accelerate library but having problems installing it. I have successfully installed the accelerate package but there seems to be a dependency problem, which I have detailed below. cabal:…
user3199023
  • 433
  • 2
  • 8
3
votes
3 answers

Cabal fails updating of cabal-install

Every time I install a library, cabal tells me to install a new version of cabal-install. Despite the fact that i run (with apparent success) the procedure that list below, the version of cabal-install remains unchanged. Where I am going wrong? (My…
Alberto Capitani
  • 1,039
  • 13
  • 30
3
votes
1 answer

Cabal update error: "ErrorMisc Unsuccessful HTTP code: 404"

I have a problem with a fresh installation of the Haskell-Platform 2013.2. When I want to run cabal update I get the error as aforementioned. I have no idea what is going wrong. Meiner
Matthias Preu
  • 783
  • 2
  • 8
  • 18
3
votes
3 answers

How to properly install Cabal 1.18.02 in Windows 7?

I'm trying to install the new Cabal in Windows 7. It successfully installs 1.18.02, but when I run "cabal --version" it shows 1.16. The folder C:\Users\me\AppData\Roaming\cabal\bin is at the front of my PATH. When I directly run the 1.18 executable,…
jmite
  • 8,171
  • 6
  • 40
  • 81
3
votes
2 answers

What does cabal's "Warning: Falling back to topdown solver for GHC < 7." mean?

When building with cabal on GHC6 it warns: Warning: Falling back to topdown solver for GHC < 7. What's the topdown solver and what is the meaning of the warning? How does it affect me?
Petr
  • 62,528
  • 13
  • 153
  • 317
3
votes
0 answers

cabal install cabal-install fails due "missing" installed-package

I just updated the haskel-plataform did a cabal update and was informed there is a new version of cabal-install that I should update to. So I do a cabal install cabal-install and get: cabal: The following installed packages are broken because other…
PuercoPop
  • 6,707
  • 4
  • 30
  • 40