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

Reinstalling the same version of a package with cabal new-install

I am working on a Haskell package. I have not yet uploaded it to Hackage and the version number is 0.1.0.0. I am using new style Cabal commands. In order to test the package while I'm working on it (to make the library available to the test…
Liisi
  • 329
  • 1
  • 6
2
votes
1 answer

Haskell Text.Regex.Posix and Text.Regex.TDFA not working in ghci

I'm using Windows 10, GHC 8.6.5. I have used cabal new-install on both Text.Regex.Posix and Text.Regex.TDFA and cabal outputs that it has built them and installed them. But neither of those modules could not be loaded in ghci. Now when I run install…
toni rmc
  • 848
  • 2
  • 10
  • 25
2
votes
1 answer

How can I use Stackage's cabal.config files with nix-style cabal?

Stackage provides a cabal.config file with each snapshot, e.g. this one. How can I make cabal new-configure a project with the package versions from that file? (Alternatively: Is there another way to configure a nix-style cabal project with…
sjakobi
  • 3,546
  • 1
  • 25
  • 43
2
votes
1 answer

Haskore installation with cabal

When trying to install Haskore, with cabal I get the following dependency conflict. (I have GHC 8.0.1) Resolving dependencies... cabal: Could not resolve dependencies: trying: base-4.9.0.0/installed-4.9... (dependency of haskore-0.2.0.8) next goal:…
RandomStudent
  • 417
  • 3
  • 12
2
votes
1 answer

Installing specific versions via stack

So I suppose the problem I'm really trying to solve is that when I run ghc-mod I get this error: CabalHelper/Licenses.hs|53 col 18 error| error: Ambiguous occurrence ‘lookupInstalledPackageId’ I found this relevant…
Chris Penner
  • 1,881
  • 11
  • 15
2
votes
1 answer

cabal dependencies are missing in Yesod and stack

Hi i try to create a new proyect for yesod using stack, follow the quickstart tutorial; to create the scaffolding I use the command: stack new my-project yesod-postgres && cd my-project But when run stack exec -- yesod devel get: cabal: At least…
oriaj
  • 768
  • 1
  • 16
  • 33
2
votes
1 answer

cabal exitfailure 77 on windows 64 platform

cabal install tangaroa Resolving dependencies... In order, the following will be installed: network-2.6.3.1 (via: tangaroa-0.0.0.1 tangaroa-0.0.0.1 tangaroa-0.0.0.1 tangaroa-0.0.0.1) (new package) tangaroa-0.0.0.1 (reinstall) (changes:…
2
votes
1 answer

wxHaskell fails because it depends on wx_macu-2.8

I install wxWidgets with macports then ran the command: sudo cabal install wx which output included: /bin/sh: wxdirect: command not found /bin/sh: wxdirect: command not found /bin/sh: wxdirect: command not found /bin/sh: wxdirect: command not…
None
  • 3,875
  • 7
  • 43
  • 67
2
votes
1 answer

wxHaskell not find module `Distribution.Compat.Exception'

I am trying install wxhaskell on ubuntu (and I have already installed wxwidget and it works well in codeblock) I run cabal install wxc in terminal and here is output /tmp/wxc-0.92.1.1-2711/wxc-0.92.1.1/Setup.hs:25:8: Could not find module…
zjyfdu
  • 65
  • 1
  • 8
2
votes
1 answer

Cabal getting installed in root directory instead of /home/vagrant directory using Vagrantfile

THe below is the content of the vagrant file. When I run vagrant up command, it installs cabal as required but it is in the root directory. Hence, it becomes unusable. I want to update the cabal version to latest version using cabal update. But it…
Zack
  • 2,078
  • 10
  • 33
  • 58
2
votes
1 answer

Not able to initialize sandbox using cabal on haskell platform

I have done the below steps to install cabal . I have already installed haskell platform using sudo apt-get install haskell-platform http://coldwa.st/e/blog/2013-08-20-Cabal-sandbox.html Building Cabal from git Assuming you already have a previous…
Zack
  • 2,078
  • 10
  • 33
  • 58
2
votes
2 answers

Cannot successfully install plot Haskell

I'd like to do some graphing in my Haskell program, but when I try to install plot I get the following error. Preprocessing library plot-0.2.3.4... lib/Graphics/Rendering/Plot/Figure/Simple.hs:37:8: Could not find module ‘Numeric.Container’ …
theideasmith
  • 2,835
  • 2
  • 13
  • 20
2
votes
1 answer

How do I ensure that my Haskell packages match LTS Haskell?

I'd like to have a simple way of ensuring that the packages in my system, whether they are in the global or the user package database, correspond to the versions in the current LTS Haskell. I gather that there are fairly simple ways to do something…
orome
  • 45,163
  • 57
  • 202
  • 418
2
votes
1 answer

Installing a Haskell package from Hackage through Cabal gets stuck at dependency resolution

Here is the output from verbose mode. I know this used to work for me before but now this happens. I've tried it with other packages and got the same result. $ sudo cabal install test-framework-quickcheck2 -v /usr/local/bin/ghc…
Chry Cheng
  • 3,378
  • 5
  • 47
  • 79
2
votes
1 answer

cabal sandbox uses system level packages

I am trying to run a haskelldb-demo cabal sandbox init && cabal install --only-dependencies It needs HDBC-postgresql-2.2.3.1 which needs base package version as base>=3 && <4.5. My system has base pkg versioned 4.7+. I am using cabal sandbox but…
user2879704