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

How to run shake without stack

I created the recommended build.sh file from the "Running" section of the Shake manual: #!/bin/sh mkdir -p _shake ghc --make Shakefile.hs -v -rtsopts -threaded -with-rtsopts=-I0 -outputdir=_shake -o _shake/build && _shake/build "$@" but running…
avh4
  • 2,635
  • 1
  • 22
  • 25
3
votes
1 answer

Out-of-memory condition error when updating agda with cabal?

I'm trying to upgrade agda, getting a memory error. Any ways to fix this? I tried cabal install --ghc-options="+RTS -M600M" --force-reinstalls agda but per a similair question, but this just gave a heap error. wmacmil@w:~$ cabal install…
user5775230
3
votes
1 answer

Haskell `cabal` only "partially" installing package

Having problems installing a Haskell package called Tidal, using cabal on Ubuntu 18:04. https://tidalcycles.org/index.php/Userbase I'm not a Haskell expert and have borked this stuff a couple of times before, so am trying as fresh an install as…
Justin
  • 4,649
  • 6
  • 33
  • 71
3
votes
2 answers

Vague 'Couldn't match expected type' error when trying to use ManagerDocks in Xmonad

I am trying to add the docks command to my .xmonad config, but adding it results in a somewhat confusing type error: Error detected while loading xmonad configuration file: /home/dan/.xmonad/xmonad.hs xmonad.hs:11:11: error: • Couldn't match…
danbroooks
  • 2,712
  • 5
  • 21
  • 43
3
votes
2 answers

How to overcome [cabal: error while loading shared libraries:] error on arch linux?

I had some problems a while back trying to use cabal, so I reinstalled ghc (from 8.6.3) to 8.6.4. When I try to use cabal (after it is uninstalled completely) I still get the below error, but can't see the file mentioned in when using fzf from the…
user5775230
3
votes
1 answer

Is it possible to keep the test suite logs generated by Cabal when run through nix-build?

I have a .cabal file specifying a test suite, and a default.nix file generated with cabal2nix. Then I have a release.nix file (containing something like pkgs.haskell.packages.ghc802.callPackage ./default.nix {}) that I can nix-build. It works: I…
noteed
  • 310
  • 2
  • 6
3
votes
1 answer

Workarounds for Haskell / cabal packages with constraints with Nix and Cabal?

I recently got into developing with reflex-platform, with some extra configuration similar to what is described in the excellent reflex-project-skeleton. Now I am having a package conflict that I am unable to resolve. I use the same cabal script as…
RecencyEffect
  • 736
  • 7
  • 18
3
votes
3 answers

Registering multiple versions of packages with `ghc-pkg`?

I'm trying to install GHC and Cabal on FreeBSD 8.1. I've installed GHC 7.0.1 (because it's current stable release) and now trying to install Cabal (to install cabal-install), but it fails with this error message. %./Setup configure Configuring…
eonil
  • 83,476
  • 81
  • 317
  • 516
3
votes
2 answers

Weird error during derive-2.3.0.2 build

I am trying to install the "yi" editor using cabal-install, which in turns installs the package 'derive-2.3.0.2'. I get the following error during derive's compilation: [53 of 58] Compiling Data.Derive.Internal.Traversal (…
Alex Shtoff
  • 2,520
  • 1
  • 25
  • 53
3
votes
0 answers

Can't install cabal-doctest-1, getting compilation error

I tried to install cabal-doctest-1, but I got a compilation error like this: Resolving dependencies... Configuring cabal-doctest-1.0.1... Building cabal-doctest-1.0.1... Failed to install cabal-doctest-1.0.1 Build log ( C:\Users\Podlovics…
Anabra
  • 91
  • 6
3
votes
2 answers

How can I pin a version of a Haskell dependency to a version of an underlying native dependency with Cabal?

In my particuar case, I have a dependency in my Cabal file on the Haskell package bindings-libzip. In particular, I could accept several different versions of libzip, e.g. bindings-libzip-0.11 or bindings-libzip-0.10. These in turn have a dependency…
badcook
  • 3,699
  • 14
  • 25
3
votes
1 answer

How can I work around cabal sandbox build errors on Windows due to path length limitations?

For a while I was mystified about the fact that doing installs/builds in a cabal sandbox often failed on my Windows machine. I eventually figured out that the failures were caused by certain paths exceeding the MAX_PATH limit (paths are effectively…
Daniel Pratt
  • 12,007
  • 2
  • 44
  • 61
3
votes
2 answers

Progress messages not appearing with cabal install for some users

I'm working on a team project using Haskell and whenever I compile our project using 'cabal install' I start seeing the following: $ cabal clean && cabal install cleaning... Resolving dependencies... Configuring hackathon-0.1... Building…
Robert Massaioli
  • 13,379
  • 7
  • 57
  • 73
3
votes
2 answers

My installed transformers version is not considered by cabal-install

I am totally new to Haskell an cabal and I'm trying to make yesod work. My cabal version is cabal-install version 1.20.0.3 using version 1.20.0.2 of the Cabal library This is what happends when I tru to install alex: $ cabal install alex Resolving…
Vitaly Olegovitch
  • 3,509
  • 6
  • 33
  • 49
3
votes
1 answer

leksah install fails due to regex-tdfa-text-1.0.0.2

On ubuntu 12.04, ghc 7.10.3, cabal 1.22.3, 4 gigs of RAM, I get an error when installing leksah, following these instructions. Any idea how to solve this ? What is causing this? joco@vm001:~$ cabal install leksah Resolving…
jhegedus
  • 20,244
  • 16
  • 99
  • 167