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
4
votes
0 answers

ghc fails to find a library that I built and installed with cabal new-install --lib

I am building a Haskell library with Cabal that I would like to install to use in some other projects. I am using Windows PowerShell and new style Cabal commands. I have ghc 8.10.1 and Cabal 3.2.0.0 and used Chocolatey to install them. cabal…
Liisi
  • 329
  • 1
  • 6
4
votes
1 answer

Can't install "System.Random" by cabal

I try to install "System.Random" by cabal through Powershell & Git Bash. getting this result. PS C:\Users\xxx> cabal install random Resolving dependencies... Up to date Warning: You asked to install executables, but there are no executables…
user13101912
4
votes
1 answer

Stack only finds newer version of Cabal

I'm trying to build a project of mine using Stackage lts-13.12. After Stack was complaining that the version of Cabal was too new, I've tried to install an older version: cabal --version cabal-install version 2.2.0.0 compiled using version…
jmite
  • 8,171
  • 6
  • 40
  • 81
4
votes
1 answer

Can I replicate what nix-build does with nix-shell and cabal build?

I'm using the splendid Haskell library Miso, which recommends using Nix. The README walks us through a simple project which can be built with nix-build. The documentation for Miso hints that I can do: nix-shell -A env cabal configure --ghcjs cabal…
4
votes
2 answers

Upgrade package dependencies using Cabal

I have a script that deploys a Haskell program once a day. It currently does: cabal update cabal install --only-dependencies cabal configure cabal build Which ensures it has the latest package index list, upgrades any dependency whose lower bound…
Neil Mitchell
  • 9,090
  • 1
  • 27
  • 85
4
votes
1 answer

How to make bash autocompletion work with cabal?

With stack build tool I need to add the following line to my system config and autocompletion works: eval "$(stack --bash-completion-script stack)" But autocompletion for cabal-install doesn't work out of the box and I can't find a way to do this.…
Shersh
  • 9,019
  • 3
  • 33
  • 61
4
votes
1 answer

couldn't install leksah on Ubuntu 16.10 using cabal 1.24.0.2/ghc 8.2.1

I'm trying to install leksah as my development environment using cabal but I ran into errors. user@home:~$ cabal install leksah Resolving dependencies... cabal: Could not resolve dependencies: trying: leksah-0.15.2.0 (user goal) next goal: base…
user51
  • 8,843
  • 21
  • 79
  • 158
4
votes
2 answers

What is the preferred way to write quick Haskell test programs that depend on Stack libraries in local directories?

I have a Haskell library that I am developing using Stack. As I am developing the library, I like to write small test/experimentation programs that use the library. I keep a collection of these test programs for myself in a directory locally. These…
Aaron Rotenberg
  • 972
  • 7
  • 22
4
votes
2 answers

Stack gives 'dyld: malformed mach-o'

When I attempt to run stack, for example even just stack --version, I get dyld: malformed mach-o: load commands size (38712) > 32768 What can I do to fix this. This started appearing after some recent updates to Homebrew.
orome
  • 45,163
  • 57
  • 202
  • 418
4
votes
0 answers

What does cabal install --shadow-installed-packages do?

cabal install --help says this about --shadow-installed-packages: If multiple package instances of the same version are installed, treat all but one as shadowed. But I used this option in a sandbox and it seems that all installed packages were…
WilQu
  • 7,131
  • 6
  • 30
  • 38
4
votes
0 answers

real world haskell - chapter 23 how to install gtk and glade

I am working my way through the book real world haskell, this far I always found a way to adapt the code snippets to make them run but this time I am stuck. I have to install the gtk and glade bindings in order to run the GUI example in chapter…
fayong lin
  • 214
  • 2
  • 15
4
votes
1 answer

Cabal update "premature end of compressed stream" error

My cabal instance, whenever I try to run cabal update or cabal install foo keeps giving the error: Downloading the latest package list from hackage.haskell.org cabal: Codec.Compression.Zlib: premature end of compressed stream I'm running cabal…
Nathan
  • 73,987
  • 14
  • 40
  • 69
4
votes
0 answers

Problems updating cabal-install v. 1.20.0.3

Problems updating cabal-install v. 1.20.0.3 The following is what I made C:\Windows\system32>cabal update Downloading the latest package list from hackage.haskell.org Note: there is a new version of cabal-install available. To upgrade, run: cabal…
Alberto Capitani
  • 1,039
  • 13
  • 30
4
votes
2 answers

How to build a sandboxed cabal project with a custom version of a dependency that is not on hackage (e.g. a checkout from github)

If a have a library checked out locally that builds with cabal that is used by an application. I would like to build my application against the the local library rather than something from hackage but I'm not sure how to do this. This seems like…
Gareth Charnock
  • 1,166
  • 7
  • 17
4
votes
1 answer

ExitFailure 1 on `Hat` again

In this question, we installed the dependencies for Hat. Now when I try to do cabal install Hat I get at the end: [ 6 of 11] Compiling Environment ( trans/Environment.hs, dist/build/hat-trans/hat-trans-tmp/Environment.o…
PyRulez
  • 10,513
  • 10
  • 42
  • 87