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

In Haskell, how do I install the encoding package on Windows?

I'm a total newb with haskell and I'm making a trivial project but I needed to run cabal install encoding. But, when I did, it gave me this error: Configuring encoding-0.6.7.2... setup.exe: Missing dependency on a foreign library: * Missing (or…
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
3
votes
4 answers

Haskell - can't find package

I have a package installed via cabal: Data.Vector But when I attempt to compile a program that has import Data.Vector in it: Drews-MacBook-Pro:Blokus-AI drewgross$ ghc --make -O2 -prof -auto-all playGame Grid.hs:28:8: Could not find module…
Drew
  • 12,578
  • 11
  • 58
  • 98
3
votes
1 answer

Cabal: Blocking base packages from installing

I'm using cabal-install 1.14.0 on Ubuntu 12.04, and ghc 7.4.1. Some cabal packages I try to install are pulling in directory-1.2.0.0, which requires ghc 7.6. Is there a way to configure cabal to not even attempt to install directory-1.2.0.0?
nnyby
  • 4,748
  • 10
  • 49
  • 105
3
votes
1 answer

Building the “text” library fails on OS X Mountain Lion

I'm trying to build the text library on OS X 10.8 (Mountain Lion) but I get the following erros: beta@lucy:/tmp/text-0.11.2.2 ☺ $ cabal configure Resolving dependencies... Configuring…
beta
  • 2,380
  • 21
  • 38
3
votes
1 answer

Install of semigroups fails with cabal

I would like to install Snap, but i'm new to Haskell and its platform. I use cabal to install Snap and it fails to install semigroups : % cabal install snap Resolving dependencies... Configuring semigroups-0.8.3... Preprocessing library…
2
votes
1 answer

Problem installing haskell profiling libraries with cabal

I have a cabal project and I'm trying to compile it with profiling turned on. I'm following the instructions here but cabal build fails with the following error: app/WordMap.hs:5:1: error: Could not find module ‘Data.HashMap.Strict’ Perhaps…
2
votes
1 answer

cannot install yesod

I follow installation steps given on http://www.yesodweb.com/book/TXKGPHUZXDLYRGF the command "cabal install alex happy" fails with the error below. what is wrong? I am totally new. this is my first attempt to install yesod. I am on windows…
akonsu
  • 28,824
  • 33
  • 119
  • 194
2
votes
1 answer

Why can't I cabal install template-haskell-2.17.0.0?

I am trying to install the specific version template-haskell-2.17.0.0. I run this command, but get an error during dependency resolution: ❯ cabal install template-haskell-2.17.0.0 --lib Resolving dependencies... cabal: Could not resolve…
2
votes
1 answer

How do I stop GHC from recompiling modules when nothing has changed?

I have the following directory structure: libgs - The basic Global Script abstract machine and standard library gsi - A Global Script interpreter gs2hs - A Global Script to Haskell compiler Most, but not of course all, of this code is written in…
Jonathan Cast
  • 4,569
  • 19
  • 34
2
votes
1 answer

cabal.exe: Could not resolve dependencies with --lib flag on Windows

Using PowerShell (Admin) to install the package parallel I tried to do : cabal install parallel which finished with Resolving dependencies... Up to date Warning: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: Installation…
Nanathm
  • 21
  • 1
2
votes
0 answers

How can I tell Cabal where to find alex and happy so that Cabal doesn't try to build them?

I'm developing a Haskell program using Cabal in a nix-shell. I would like to have as many dependencies of the build installed by Nix as possible. The simple.cabal file seems fairly standard (it was initially produced by stack). The full contents…
Jonathan Gallagher
  • 2,115
  • 2
  • 17
  • 31
2
votes
2 answers

I am trying to run cabal build, and I get the following error

Build profile: -w ghc-9.0.1 -O1 In order, the following will be built (use -v for more details): - csound-expression-dynamic-0.3.8 (lib) (requires build) - csound-expression-typed-0.2.7 (lib) (requires build) - csound-expression-opcodes-0.0.5.1…
2
votes
0 answers

Cannot `cabal install doctest`

I am coming across a build error when attempting to install the cabal package doctest (as well as some others). I am running MacOS on version 11.1 with an Intel x86-64 chip. I would appreciate if anyone can help me figure out why this build is…
Zack
  • 1,585
  • 1
  • 18
  • 29
2
votes
1 answer

Cabal can't install ghc-mod

I'm trying to install ghc-mod to use with Atom-Haskell (the ide-haskell package) in Atom, but for some reason my Cabal doesn't want to. When I enter the command cabal install ghc-mod, I get the following errors in my terminal: Resolving…
Sophie
  • 31
  • 1
  • 3
2
votes
1 answer

What are cabal components and how do I use them?

cabal build --help and others mention components like in sentences like Build one or more targets from within the project. The available targets are the packages in the project as well as individual components within those packages, including…
typetetris
  • 4,586
  • 16
  • 31