cabal-install

Can't install sdl2 via cabal

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 03:28:46
问题 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 found. Failed to install sdl2-1.1.0 cabal: Error: some packages failed to install: helm-0.6.1 depends on sdl2-1.1.0 which failed to install. sdl2-1.1.0 failed during the configure step. The exception was: ExitFailure 1 When I go to install sdl2 by itself, I

Install Cabal-dev on windows 7

三世轮回 提交于 2019-12-04 02:10:47
问题 I'm trying to install Cabal-dev on windows 7. I've managed to get past the problem with not being able to build network by using this: cabal install --constraint="network installed" cabal-dev However then I get this: >cabal install --constraint="network installed" cabal-dev Resolving dependencies... cabal: Could not resolve dependencies: trying: cabal-dev-0.9.1 trying: cabal-dev-0.9.1:-no-cabal-dev trying: network-2.3.1.0/installed-489... rejecting: parsec-3.1.3/installed-62e... (conflict:

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

江枫思渺然 提交于 2019-12-03 19:58:49
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 persistentTemplate poolConduit shakespeare text waiExtra waiLogger warp yaml yesod yesodAuth yesodCore

Cabal install needs C library: Windows

我只是一个虾纸丫 提交于 2019-12-03 13:44:47
I am trying to cabal install yesod on my Windows machine. I have a relatively fresh install of the Haskell Platform. The cabal install failed, reporting that I need the sqlite3 C library in order to install "persistent", a package which Yesod relies upon. cabal: Missing dependency on a foreign library: * Missing C library: sqlite3 So I went to http://www.sqlite.org/download.html and grabbed both the C source and the precompiled binary. I tried using both, to no avail: cabal install persistent --extra-lib-dirs=C:\Path\To\C\Source\Files cabal install persistent --extra-lib-dirs=C:\Path\To\Binary

Cabal fails with proxy with authentication

守給你的承諾、 提交于 2019-12-02 11:05:32
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 cabal use my proxy settings? Any indirect method will also do such as proxy bypassing etc. A similar

cabal install cabal-install errors out on linux

a 夏天 提交于 2019-12-02 08:23:41
问题 Am using linux (centos 6.6).When I try to run cabal install cabal-install command am getting following errors cabal: cannot configure unix-2.7.0.1. It requires base >=4.5 && <4.8 For the dependency on base >=4.5 && <4.8 there are these packages: base-4.5.0.0, base-4.5.1.0, base-4.6.0.0, base-4.6.0.1, base-4.7.0.0 and base-4.7.0.1. However none of them are available. base-4.5.0.0 was excluded because base-4.3.1.0 was selected instead base-4.5.0.0 was excluded because of the top level

How to install `Hat`

对着背影说爱祢 提交于 2019-12-02 01:41:23
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 failed to install. terminfo-0.4.0.0 failed during the configure step. The exception was: ExitFailure 1

Haskell - Packaging cabal package with custom preprocessors

你离开我真会死。 提交于 2019-12-01 17:27:21
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 it can not find the exposed modules which are generated by the preprocessor. The error message is cabal: Error: Could not find module with any suffix: ["gc","chs","hsc","x","y","ly","cpphs","hs","lhs"] How can I make Cabal aware of the fact that the module is not missing, or maybe add tpl to the known file extensions, or something? This is a known

Haskell - Packaging cabal package with custom preprocessors

◇◆丶佛笑我妖孽 提交于 2019-12-01 17:04:19
问题 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 it can not find the exposed modules which are generated by the preprocessor. The error message is cabal: Error: Could not find module with any suffix: ["gc","chs","hsc","x","y","ly","cpphs","hs","lhs"] How can I make Cabal aware of the fact that

Upgrade Cabal on Ubuntu 14.04

青春壹個敷衍的年華 提交于 2019-12-01 16:57:11
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 upgrade . Edit: Also when I run cabal install cabal-install it appears to "install" version 1.20 but when I run cabal -V it says cabal 1.16.0 Fixed it by adding the following line to my ~/.profile : export PATH=$(HOME)/.cabal/bin:$PATH 来源: https://stackoverflow.com/questions/25902613/upgrade-cabal-on-ubuntu-14-04