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

Haskell Cabal QuickCheck Integration

I've been trying to use cabal-install as a way to build and, more importantly, test my haskell projects, a bit alike to the way Maven is used in Java projects, mainly because it seems to be a good way as well to integrate in Jenkins or a ci or so,…
Kasper
  • 1,205
  • 12
  • 22
9
votes
1 answer

How to actually use already-installed versions of a package, or find out why it's not possible?

Cabal-newstyle has a habit to occasionally install, like, all dependencies from scratch for no apparent reason. For a project using lens and other common packages, this can take upwards of ½ hour, which is annoying especially when the purpose is…
leftaroundabout
  • 117,950
  • 5
  • 174
  • 319
9
votes
2 answers

Cabal install (Cabal cabal-install) fails due to missing zlib library

I want to install Cabal 3.4.0.0 on Ubuntu 20.04. $ sudo apt install cabal-install $ cabal --version cabal-install version 2.4.0.0 $ sudo cabal update $ sudo cabal install Cabal cabal-install ... Starting zlib-0.6.2.3 Failed to install…
eddex
  • 1,622
  • 1
  • 15
  • 37
9
votes
3 answers

mysterious cabal-install problems

With a clean install of the "Haskell Platform". (OS X Snow-Leopard & Platform 2010.1.0.1), doing this causes simple sequence causes very weird cabal install behaviour: $ cabal install time $ cabal install random $ ghc-pkg list…
yairchu
  • 23,680
  • 7
  • 69
  • 109
9
votes
2 answers

Can't compile a simple hello world using GHC 7.8rc2 and Windows 7 (or install packages with cabal)

I can't compile a simple hello world or install packages with cabal install when using ghc 7.8, cabal 1.18.1.3 and cabal-install 1.18.0.2. When doing a cabal install stm (or any other package) from a command prompt Windows shows a "ghc.exe has…
Pepe Mandioca
  • 334
  • 2
  • 10
9
votes
2 answers

Is there a way to find why cabal installed a certain package?

When installing a package with cabal-install, it will also indirectly install all the dependencies. Given a certain package in my .cabal/packages folder that I didn't directly install, is there a way to find what other package(s) it was a dependency…
hugomg
  • 68,213
  • 24
  • 160
  • 246
8
votes
1 answer

How to use "cabal-dev ghci" with a non-sandbox, non-global (user?) package?

I'm trying out cabal-dev for a project I'm working on; the project is a library, and cabal-dev does a great job of building a sandboxed version of it - but I'm having trouble with part of my workflow... I have a script, scratch.hs, which…
gimboland
  • 1,926
  • 2
  • 19
  • 28
8
votes
1 answer

Cabal install needs C library: Windows

I am trying to cabal install yesod on my Windows machine. I have a relatively fresh install of the Haskell Platform. The cabal install failed, reporting that I need the sqlite3 C library in order to install "persistent", a package which Yesod relies…
Dan Burton
  • 53,238
  • 27
  • 117
  • 198
8
votes
1 answer

What is a Cabal 'world' file for?

What is the role of the ~/.cabal/world file, and what do its contents mean? I can't find any documentation and am confused by what I see there. For example, it corresponds to nether the packages in my user database nor my global packages database,…
orome
  • 45,163
  • 57
  • 202
  • 418
8
votes
0 answers

What is the procedure for profiling under GHC 7.10.1 and cabal 1.23?

What is the recommended procedure for profiling under GHC 7.10.1 and cabal 1.23? The profiling-related error and warning messages from GHC and cabal-install are very inconsistent. Try to run an executable with profiling, and you are told: $…
mhwombat
  • 8,026
  • 28
  • 53
8
votes
1 answer

Cabal and --no-require-sandbox

In my ~/.cabal/config file, I have require-sandbox: True According to the Cabal User Guide, I should be able to override this like so: amy@wombat$ cabal install xmonad xmonad-contrib --no-require-sandbox cabal: unrecognized 'install' option…
mhwombat
  • 8,026
  • 28
  • 53
7
votes
0 answers

Reinstall all depending packages with cabal manually

Possible Duplicate: Cabal not installing dependencies when needing profiling libraries? Here is the situation. I want to install\reinstall package A with some new options or flags (for example I've add library-profiling: True in ~/.cabal/config).…
7
votes
2 answers

Cabal Update and Package Installation Errors

When I do cabal install criterion I get the following error regarding the package vector-algorithms Warning: The package list for 'hackage.haskell.org' is 16 days old. Run 'cabal update' to get the latest list of available packages. Resolving…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
7
votes
2 answers

Equivalent of passing `-p zlib` argument to `nix-shell` in `shell.nix`

If I build my Haskell project under nix-shell it gives error about missing zlib. If I build the project in nix-shell using nix-shell -p zlib then the project sees zlib and builds successfully. How can I add the zlib package to shell.nix file so that…
Răzvan Flavius Panda
  • 21,730
  • 17
  • 111
  • 169
7
votes
2 answers

How to downgrade base with cabal?

I'm trying to install a program called clanki on Windows 10. In it's installation doc it says to use 'cabal install clanki'. I downloaded cabal, then ghc. Now I run into a version problem for the package base. $ cabal install clanki Resolving…
garci560
  • 2,993
  • 4
  • 25
  • 34
1
2
3
22 23