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

How to create binary distributions of applications with cabal (the tool) or stack

I've written an application in Haskell and it's starting to become slightly useful to users. However my application isn't targeted at technically adept folks, let alone Haskell developers, so building my application from source isn't really…
Kritzefitz
  • 2,644
  • 1
  • 20
  • 35
5
votes
1 answer

GHC cannot find module in cabal sandbox

I am using Haskell version 7.8.4 on (X)Ubuntu 15.10, with Cabal-Install 1.18 both installed through apt. I have not attempted to install anything Haskell-related by hand on this machine. I set up a cabal sandbox, fetched and installed a module only…
Greg Nisbet
  • 6,710
  • 3
  • 25
  • 65
5
votes
2 answers

Global install of a program built in sandbox

I'm using sandboxes all the time when building Haskell programs and libraries. But occasionally, I build a program that I would like to install system wide. There doesn't seem to be an easy way of taking a program which is built in a sandbox and…
svenningsson
  • 4,009
  • 1
  • 24
  • 32
5
votes
1 answer

How do I find out why cabal chooses an old version of a library?

Say I'm running cabal install A B C D ... --dry-run in a fresh install of GHC (I just updated a new version). I see some of the dependencies it wants to pull in are not the latest versions of those packages, e.g: utf8-string-0.3.8 (latest:…
Ben
  • 68,572
  • 20
  • 126
  • 174
5
votes
1 answer

cabal install --- global constraint requires installed instance

My cabal dependencies are listed as base ==4.6.*, containers ==0.5.*, bytestring ==0.10.*, binary ==0.5.*, parsec ==3.1.* i did, cabal sandbox init wget http://www.stackage.org/lts/cabal.config cabal install --only-dependencies To overcome…
user2879704
5
votes
1 answer

Haskell package installed but not found

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 …
guthrie
  • 4,529
  • 4
  • 26
  • 31
5
votes
1 answer

How to compile dependencies for profiling in a cabal sandbox

I'm trying to compile one of my executables with profiling options. I added the -prof options in my cabal file. When I do that, I get a message saying Could not find module ‘Package-X’ Perhaps you haven't installed the profiling libraries for…
mb14
  • 22,276
  • 7
  • 60
  • 102
5
votes
2 answers

Where are the "curl libraries?"

I tried to install curl, the haskell package like so: cabal install curl The relevant error is: configure: error: curl libraries not found, so curl package cannot be built Where are these "curl libraries?" I already have curl the program on my…
PyRulez
  • 10,513
  • 10
  • 42
  • 87
5
votes
3 answers

cabal can't use http proxy

My Linux(redhat6) server has to use http proxy to connect to outside world. While it works for other things like wget, it doesn't work for cabal. cabal update -v3 shows errors like this: 407 - proxy authentication required cabal: Failed to…
swang
  • 5,157
  • 5
  • 33
  • 55
5
votes
1 answer

Cabal-Install lost the informative qualities of its build output

I suspect this is either a problem with ghc or cabal-install: I used to get build information in such a format: Resolving dependencies... Configuring ltk-0.8.0.6... Building ltk-0.8.0.6... Preprocessing library ltk-0.8.0.6... [ 1 of…
eazar001
  • 1,572
  • 2
  • 16
  • 29
5
votes
1 answer

What exactly does cabal install --avoid-reinstalls do?

I've found --avoid-reinstalls makes packages build where otherwise cabal fails. What exactly is it doing? Doesn't cabal already try to avoid reinstalls, or shouldn't it?
jberryman
  • 16,334
  • 5
  • 42
  • 83
5
votes
1 answer

cabal cannot be updated and "some packages failed to install"

I am rather new to the Haskell world and I would like to use the package HaskellCharts. The way to go seems to be using cabal, so I installed cabal-install from my repository (I'm on Ubuntu 10.04.4 LTS 32-bit). My specs are: $ ghc --version The…
Anju Fabulina
  • 157
  • 1
  • 5
5
votes
1 answer

installing darcsden

After making cabal install of the darcsden code I get this message: cabal: The following packages are likely to be broken by the reinstalls: bin-package-db-0.0.0.0 ghc-7.4.1 Use --force-reinstalls if you want to install anyway. How do I get around…
rbarreiro
  • 105
  • 3
4
votes
1 answer

Xmonad build failed: cound not find module control.monad.reader

I'm trying to cabal install xmonad with profiling and I keep getting the error: cound not find module control.monad.reader The error message suggested that I may not have installed the profiling libs for mtl-2.0.1.0, but I have confirmed that it is…
4
votes
2 answers

Haskell - could not find module 'Test.QuickCheck'

I'm getting an error that says the module doesn't exist when I try to runhaskell. It's odd because I try to install it first and says its up to date. Any idea how to fix this?
Matthew Lu
  • 123
  • 1
  • 5