cabal-install

cabal install does not upgrade cabal

依然范特西╮ 提交于 2019-12-12 05:52:58
问题 I have upgraded cabal install (using a capital C for Cabal ) $cabal install Cabal cabal-install [...] Configuring cabal-install-1.24.0.2... Building cabal-install-1.24.0.2... Installed cabal-install-1.24.0.2 after a lengthy output in terminal, then I check that cabal has been updated, it hasn't changed $ cabal --version cabal-install version 1.22.6.0 using version 1.22.5.0 of the Cabal library I am looking for where the new installation of cabal might be $ which cabal /usr/local/bin/cabal $

Installing gtk2hs failure

 ̄綄美尐妖づ 提交于 2019-12-11 12:18:51
问题 I followed the instructions to install gtk library on Windows 8.1 x64 using http://wiki.haskell.org/Gtk2Hs/Installation. I've installed MSYS2 and used it to download and build gtk . Then I've run: cabal update // ok cabal install gtk2hs-buildtools // ok cabal install gtk // failed, cabal logs: glib.log Building glib-0.13.2.2... Preprocessing library glib-0.13.2.2... dist\build\System\Glib\StoreValue_hsc_utils.o:StoreValue_hsc_utils.c:(.text+0x0): multiple definition of `__debugbreak' dist

Workarounds for Haskell / cabal packages with constraints with Nix and Cabal?

我与影子孤独终老i 提交于 2019-12-11 02:59:54
问题 I recently got into developing with reflex-platform, with some extra configuration similar to what is described in the excellent reflex-project-skeleton. Now I am having a package conflict that I am unable to resolve. I use the same cabal script as reflex-project-skeleton , which invokes nix-shell in non-interactive mode with a cabal command. If I try ./cabal new-build --allow-newer all I get these derivations will be built: /nix/store/d6ji516i7pry5l6gv18y6hpj9k1bvgg5-heist-1.0.1.0.drv /nix

mysterious cabal-install problems

℡╲_俬逩灬. 提交于 2019-12-10 03:17:16
问题 With a clean install of the "Haskell Platform". (OS X Snow-Leopard & Platform 2010.1.0.1), doing this causes simple sequence causes very weird cabal install behaviour: $ cabal install time $ cabal install random $ ghc-pkg list random /Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.1/package.conf.d random-1.0.0.2 /Users/yairc/.ghc/i386-darwin-6.12.1/package.conf.d random-1.0.0.2 random-1.0.0.2 is installed twice in my system. and now doing cabal install random reinstalls random

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

北战南征 提交于 2019-12-09 17:35:23
问题 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 failed to install. hlint-1.9.37 depends on old-time-1.1.0.3 which failed to install. old-time-1.1.0.3 failed during the configure step. The exception was: ExitFailure 77 Then I tried to install ghc-mod since I read that hlint is a dependency of

documentation for cabal-install configuration file

对着背影说爱祢 提交于 2019-12-09 14:27:14
问题 The ~/.cabal/config stores configuration which cabal-install uses. I wanted to do some hackery on it. (Specifically, having multiple GHC versions installed, I wish to have separate documentation indexes). I couldn't, however, find any documentation about its' syntax or variables except for what is included in default file. Is there any documentation available? Edit: I've stated the goal above, but let me add some details: If the same package (eg. GTK) is installed in two versions of GHC they

cabal can't use http proxy

橙三吉。 提交于 2019-12-07 06:18:21
问题 My Linux(redhat6) server has to use http proxy to connect to outside world. While it works for other things like wget, it doesn't work for cabal. cabal update -v3 shows errors like this: 407 - proxy authentication required cabal: Failed to download http://hackage.haskell.org/packages/archive/00-index.tar.gz : ErrorMisc "Unsucessful HTTP code: 407" I tried to change http_proxy environment variable to format like http:// user: passwd at proxy:port, but it doesn't work either. The same problem

How do I install dependencies when cross compiling haskell code?

谁都会走 提交于 2019-12-06 17:52:40
问题 I've successfully created a ghc cross compiler, that allows me to compile haskell code for armv6h (raspberry pi in my case) from my x64 linux machine. I've successfully run a hello world program on the raspberry. No I want to build my real app, which has a lot of dependencies on other haskell modules. When I compile for x64 I simply do cabal install dependenciy1 depenency2 ... I know I could make my own programm a cabal-project an automate this step. But that's not the point here. When I try

Why are cabal reinstalls “always dangerous”?

懵懂的女人 提交于 2019-12-06 16:51:15
问题 When reinstalling a package using Cabal, one usually sees this warning: Warning: Note that reinstalls are always dangerous. Continuing anyway... What are some of the reasons behind this message? 回答1: Currently, reinstalling a package means destructively overwriting an already installed package. If that old package has any reverse dependencies on the system, they'll no longer work. To make this less likely, cabal-install checks the package databases it has access to when invoked for such

Portable package installation on Haskell Platform with Cabal on windows

六月ゝ 毕业季﹏ 提交于 2019-12-06 12:27:34
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 in such a way that they could work portable, i. e. from my USB flashcard on not my computer. I tried