cabal-install

How to downgrade base with cabal?

主宰稳场 提交于 2019-12-23 10:08:42
问题 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 dependencies... cabal.exe: Could not resolve dependencies: trying: clanki-1.2.7 (user goal) next goal: base (dependency of clanki-1.2.7) rejecting: base-4.9.0.0/installed-4.9... (conflict: clanki => base<=4.9.0) rejecting: base-4.9.0.0, base-4.8.2.0,

Portable package installation on Haskell Platform with Cabal on windows

霸气de小男生 提交于 2019-12-22 18:26:41
问题 I have Windows XP and Haskell Platform 2013 installed on it. When I want to compile my code on some computer, which has not Haskell Platform installed on it, and I'm not allowed to install anything, I can copy my Haskell Platform on USB flashcard, and run on this computer, and it's work just fine. But sometimes I need additional packages, that are not part of the standard Haskell Platform build. I can simply install it on my personal computer with Cabal, but I don't know, how to install them

How can I pin a version of a Haskell dependency to a version of an underlying native dependency with Cabal?

若如初见. 提交于 2019-12-22 10:31:25
问题 In my particuar case, I have a dependency in my Cabal file on the Haskell package bindings-libzip . In particular, I could accept several different versions of libzip , e.g. bindings-libzip-0.11 or bindings-libzip-0.10 . These in turn have a dependency on the respective native C libzip libraries versions 0.11 and 0.10 . Therefore I have bindings-libzip >= 0.10 < 0.12 in my .cabal file. The Haskell package bindings-libzip-x specifies with PkgConfig-Depends that libzip version x must be present

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

北城余情 提交于 2019-12-22 01:38:21
问题 After clearing out all of my cabal install ed 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 dependencies... Downloading cabal-dev-0.9.1... [1 of 1] Compiling Main ( /tmp/cabal-dev-0.9.124882/cabal-dev-0.9.1/Setup.hs, /tmp/cabal-dev-0.9.124882/cabal-dev-0.9.1/dist/setup/Main.o ) Linking /tmp/cabal-dev-0.9.124882/cabal-dev-0.9.1/dist/setup/setup ... Configuring

Install Haskell packages using cabal without internet connection

假如想象 提交于 2019-12-21 16:54:57
问题 I have a machine that doesn't have internet access at all. I installed the Haskell Platform on it using the installer which I got from another machine through a pendrive. Now I want to install the package repa on my home machine which has no internet access. How should I do that? My home machine is running Linux (Debian) and my office machine is Windows 7. 回答1: From a machine you can access the internet you can either: Run cabal get pkg-name where pkg-name is the package you want. Go to the

How can I tell Cabal which dependency to use?

三世轮回 提交于 2019-12-21 12:19:37
问题 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 so happens that template-haskell versions 2.7 and later will not install on my system, but template-haskell 2.5.0.0 will install. When I'm asking Cabal to install haskell-src-meta , how do I tell it to use template-haskell == 2.5.0.0 ? Here is the

use cabal2nix to create local nix environment for packages that aren't in nixpkgs

时间秒杀一切 提交于 2019-12-21 05:40:37
问题 I currently have a Yesod web application that I am developing on NixOS. I am using a default.nix file like described in O'Charles' blog post: { haskellPackages ? (import <nixpkgs> {}).haskellPackages }: haskellPackages.cabal.mkDerivation (self: { pname = "myblog"; version = "0.0.0"; src = ./.; isLibrary = true; isExecutable = true; buildDepends = with haskellPackages; [ aeson bson conduit dataDefault fastLogger hjsmin httpConduit monadControl monadLogger mongoDB persistent #persistentMongoDB

Cabal fails with proxy with authentication

*爱你&永不变心* 提交于 2019-12-20 05:58:17
问题 This is a well-known bug that cabal can not handle proxies in format http://user:password@host:port format. On Haskell mailing list, someone suggested a patch to overcome this but that patch is now quite old. It fails with following message Downloading the latest package list from hackage.haskell.org Warning: invalid http proxy uri: "http://user:pass@host:80/" Warning: proxy uri must be http with a hostname Warning: ignoring http proxy, trying a direct connection Does anyone know how to make

How to install `Hat`

佐手、 提交于 2019-12-20 02:54:53
问题 I am trying to get the Hat debugger. When I try: cabal install hat OR cabal install hat -v At the end I get: configure: error: in `/tmp/terminfo-0.4.0.0-17745/terminfo-0.4.0.0': configure: error: curses headers could not be found, so this package cannot be built See `config.log' for more details Failed to install terminfo-0.4.0.0 cabal: Error: some packages failed to install: haskeline-0.7.1.3 depends on terminfo-0.4.0.0 which failed to install. hat-2.8.0.0 depends on terminfo-0.4.0.0 which

cabal install — global constraint requires installed instance

浪尽此生 提交于 2019-12-12 10:51:59
问题 My cabal dependencies are listed as base ==4.6.*, containers ==0.5.*, bytestring ==0.10.*, binary ==0.5.*, parsec ==3.1.* i did, cabal sandbox init wget http://www.stackage.org/lts/cabal.config cabal install --only-dependencies To overcome dependency conflicts, i am using sandbox installation. But still, cabal is talking about some global constraints which is confusing for me. Cabal dependency tree resolution gets screwed as, trying: parsec-3.1.8 (dependency of myproj-0.1.0.0) next goal: mtl