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

When I try to install hlint I get errors surrounding old-time-1.1.0.3

I first tried to install Hlint. cabal install hlint but then I got the error: cabal: Error: some packages failed to install: cpphs-1.20.2 depends on old-time-1.1.0.3 which failed to install. haskell-src-exts-1.18.2 depends on old-time-1.1.0.3 which…
mrfr
  • 1,724
  • 2
  • 23
  • 44
7
votes
1 answer

Differential Documentation with haddock

If I do a cabal build on my library, then change a file, the next time I run cabal build, I only have to recompile files affected by the changes. I'm not getting the same behavior with the cabal haddock command: when I run it after changing a file,…
crockeea
  • 21,651
  • 10
  • 48
  • 101
7
votes
1 answer

Linked Cabal sandboxes - shared libraries not found from `cabal repl`

I've got two packages that I'm developing, A and B. Package B depends on A. A was developed in it's own sandbox, and a similar story goes for B: A> cabal sandbox init A> cabal install --enable-shared B> cabal sandbox init B> cabal sandbox…
Athan Clark
  • 3,886
  • 2
  • 21
  • 39
7
votes
1 answer

Cabal library vs cabal-install. what's the difference?

When I do cabal --version I see: cabal-install version 0.14.0 using version 1.14.0 of the Cabal library so what's the difference? i thought that when i do cabal build i use only one program. why is it split into two separate programs with…
piotrek
  • 13,982
  • 13
  • 79
  • 165
7
votes
1 answer

Upgrade Cabal on Ubuntu 14.04

When I install Haskell/GHC+cabal via sudo apt-get I installed cabal version 1.16. This is obviously not the most up to date version. How would I go about upgrade to at least version 1.18? I tried doing sudo apt-get update and sudo apt-get…
Sleep Deprived Bulbasaur
  • 2,368
  • 4
  • 21
  • 33
7
votes
2 answers

Can't install sdl2 via cabal

I am trying to install helm. When I try to install it, however I get this error: $ cabal install helm Resolving dependencies... Configuring sdl2-1.1.0... cabal: The pkg-config package 'sdl2' version >=2.0.3 is required but it could not be…
asg0451
  • 493
  • 4
  • 13
7
votes
1 answer

Different behavior of cabal repl for library vs. executable

Using cabal repl seems to do nothing at all when used on library projects, but works fine for executable projects. Is this expected behavior that I just don't understand? If I have a file containing simply go = putStrLn "test" and use cabal init…
Karl
  • 1,143
  • 6
  • 20
7
votes
1 answer

Profiling an executable with cabal

After some of the recent-ish changes to cabal, I am totally confused as to how to profile an executable. In ~/.cabal/config, I have profiling enabled: amy@wombat$ grep prof ~/.cabal/config library-profiling: True executable-profiling: True But if I…
mhwombat
  • 8,026
  • 28
  • 53
7
votes
1 answer

Static .lib required for compiling library is also required for library users?

I've been working on a Haskell library package which requires a custom .dll and .lib on Windows to talk to some OS APIs. The .lib is linked into the library with the extra-libraries field and the DLL is installed in the cabal package directory with…
Tom Savage
  • 3,172
  • 4
  • 31
  • 31
7
votes
1 answer

Haskell - Packaging cabal package with custom preprocessors

I've implemented a custom preprocessor which creates *.hs files form *.tpl files. It is specified in Setup.hs by using a Build-Type: Custom. Everything works fine, but I can't create tar.gz package from it (using cabal sdist). Cabal complains, that…
scravy
  • 11,904
  • 14
  • 72
  • 127
7
votes
1 answer

updating cabal-install, but version is not changed

Currently I am using cabal-install 1.16.0 I tried to update cabal-install because someone told me that newer version of ghc (7.6.1) is available. Installation result was quite successful except for this message. Warning: could not create a symlink…
6
votes
1 answer

How can I tell Cabal which dependency to use?

I'm trying to get Cabal to install the haskell-src-meta package, and I'm having difficulty with the template-haskell dependency. The dependencies for haskell-src-meta include both template-haskell >=2.7 && <2.9, template-haskell >=2.4 && <2.7, It…
Norman Ramsey
  • 198,648
  • 61
  • 360
  • 533
6
votes
1 answer

Error in cabal-installing hspec

I'm trying to install hspec, but I'm getting this: $ cabal install hspec Resolving dependencies... cabal:…
Clark Gaebel
  • 17,280
  • 20
  • 66
  • 93
6
votes
2 answers

How do you install packages/libraries without Cabal or Cabal-Install?

I'm trying to set up Haskell from scratch, on Ubuntu 11.04, without using the outdated Debian repository or Haskell-Platform. I've installed GHC-7.0.4 from source with no problem, and now need to install Cabal (which appears to already be included…
bgibson
  • 17,379
  • 8
  • 29
  • 45
6
votes
1 answer

What is the difference between install, v1-install, v2-install and new-install?

The commands install, v1-install, v2-install and new-install are simply described to "Install packages" when running man cabal. Are they different from one another? Which is the preferred option?
Jan Berndt
  • 913
  • 1
  • 10
  • 22
1 2
3
22 23