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
67
votes
3 answers

How to install a package using stack?

Using cabal, I could install hakyll with the command: cabal install hakyll How can I do the same thing using stack?
Ben
  • 3,612
  • 3
  • 19
  • 24
24
votes
2 answers

Haskell cabal-install errors

I am having lots of problems with cabal-install: 1: Every time I do cabal update, it tells me to do cabal install cabal-install, so I do, and then when I do cabal update again, it says the same thing. 2: When I try to install ghc-mod from…
functorial
  • 687
  • 5
  • 13
21
votes
1 answer

Why are cabal reinstalls "always dangerous"?

When reinstalling a package using Cabal, one usually sees this warning: Warning: Note that reinstalls are always dangerous. Continuing anyway... What are some of the reasons behind this message?
pravnar
  • 833
  • 7
  • 11
19
votes
1 answer

cabal-install does not retain the version for happy

I've trying to do cabal install hoogle but there is a hickup with the haskell-src-exts-1.13.5 dependency: Configuring haskell-src-exts-1.13.5... setup: The program happy version >=1.17 is required but it could not be found. When I try to do cabal…
Alexander Kondratskiy
  • 4,156
  • 2
  • 30
  • 51
18
votes
1 answer

Haskell Cabal: "package indirectly depends on multiple versions of the same package"

After clearing out all of my cabal installed packages, I ran this following session: $ cabal update Downloading the latest package list from hackage.haskell.org james@bast:~/.cabal/packages$ cabal install cabal-dev Resolving…
jameshfisher
  • 34,029
  • 31
  • 121
  • 167
17
votes
2 answers

Limit memory used by cabal install?

I'm limited by 1GB memory on my server hosting. When I want to compile some big program like git-annex, Cabal eats lot of memory. Is there a way to limit cabal or gcl using some option to limit memory usage? I updated question with some details: I'm…
reyman64
  • 523
  • 4
  • 34
  • 73
15
votes
2 answers

documentation for cabal-install configuration file

The ~/.cabal/config stores configuration which cabal-install uses. I wanted to do some hackery on it. (Specifically, having multiple GHC versions installed, I wish to have separate documentation indexes). I couldn't, however, find any documentation…
Tener
  • 5,280
  • 4
  • 25
  • 44
15
votes
1 answer

How do I install dependencies when cross compiling haskell code?

I've successfully created a ghc cross compiler, that allows me to compile haskell code for armv6h (raspberry pi in my case) from my x64 linux machine. I've successfully run a hello world program on the raspberry. No I want to build my real app,…
13
votes
4 answers

cabal-install and Debian

So, this is a bit of a personal problem, but maybe people will have good advice or workarounds. The problem is about installing cabal-install and haskell-platform under Debian. When you apt-get install haskell-platform, it ships with cabal-install,…
Ptival
  • 9,167
  • 36
  • 53
13
votes
1 answer

Why the presence/absence of the HsColour binary forces to recompile the QuickCheck library?

Let's suppose I have no the HsColour program installed and I install QuickCheck $ cd /tmp/ $ cabal get QuickCheck $ cd QuickCheck $ cabal install ... [ 1 of 15] Compiling Test.QuickCheck.Random ... [15 of 15] Compiling…
asr
  • 1,166
  • 6
  • 18
13
votes
1 answer

Why wasn't Cabal made a full package manager?

(Before I start: I'm going to use Cabal for Everything that has Cabal in its name and has something to do with Haskell.) Having had the usual "you need to update X to install Y, but this will break dependency Z" issue again the other day, I thought…
David
  • 8,275
  • 5
  • 26
  • 36
12
votes
1 answer

cabal install `gcc' failed in phase `C Compiler'

I want to use parsec for a personal project. But when I invoke cabal install parsec, I get an error: clang: error: unknown argument: '-no-pie' gcc' failed in phase `C Compiler'. (Exit code: 1) I am on OS X El Capitan, 10.11.6. If I have understood…
Etienne Bernard
  • 123
  • 1
  • 5
11
votes
1 answer

Cabal configure - What does "configure" mean?

Which actions does the term "configure" cover in the command cabal configure? I have read through documentation, but everything I can find essentially says "configure configures", or install also "configures". Thank you.
Jordan Morris
  • 2,101
  • 2
  • 24
  • 41
11
votes
2 answers

plugins package unknown symbol when using cabal

I'm messing around with the plugins package however I bumped into a problem. Here's the code: Util/Header.hs module Util.Header(PT(..)) where data PT a = PT a deriving Show Plug.hs module Plug(helloPlugin) where import Util.Header helloPlugin ::…
user967965
10
votes
0 answers

passing flags to alex and happy via stack

I am trying to move a project from cabal to stack. It was painless up until I tried to make alex use a custom wrapper. Now I'm stuck. I used to use cabal build --alex-options=".." to pass them on, but that option is not there with stack (stack…
orm
  • 2,835
  • 2
  • 22
  • 35
1
2 3
22 23