cabal

Package versioning clashes in Cabal

你离开我真会死。 提交于 2019-12-23 17:14:05
问题 Forgive me if this is a FAQ but I'm a bit puzzled about how to get around this problem properly. I recently downloaded the package TagSoup which installed fine with the latest version 0.12.2 Then I installed the package download-curl which installed fine with the latest version. What I failed to realise was, download-curl depends on TagSoup with a version =< 0.11, so as part of the installation process Cabal downloaded an older version of TagSoup too. This is a problem because I want to use

How can I get cabal to install acid-state?

拟墨画扇 提交于 2019-12-23 15:53:20
问题 I'm a newbie to Haskell, and wanted to try the acid-state library, but I get the following output when trying to install it: >cabal install acid-state Resolving dependencies... Configuring acid-state-0.7.5... Building acid-state-0.7.5... Preprocessing library acid-state-0.7.5... [ 1 of 15] Compiling Data.Acid.CRC ( src\Data\Acid\CRC.hs, dist\build\Data\Ac id\CRC.o ) [ 2 of 15] Compiling Paths_acid_state ( dist\build\autogen\Paths_acid_state.hs, dist\build\Paths_acid_state.o ) [ 3 of 15]

How can I configure cabal to use different folders for 32-bit and 64-bit packages?

自闭症网瘾萝莉.ら 提交于 2019-12-23 13:19:04
问题 I'm doing some testing of 64-bit GHC on Windows, in tandem with migrating code forward to GHC 7.6.1. This means that I have both the 32-bit and 64-bit versions of GHC 7.6.1 installed, so I can distinguish 64-bit specific problems from general problems with 7.6.1. My cabal config file ( $APPDATA/cabal/config ) contains libsubdir: $pkgid\$compiler which means that both 32-bit and 64-bit versions of packages I install are ending up in e.g. zip-archive-0.1.1.8/ghc-7.6.1, and overwriting each

Clang error while installing QuickCheck for GHC 7.8.3 on OS X Yosemite 10.10 (14A389)

岁酱吖の 提交于 2019-12-23 11:59:40
问题 While installing the QuickCheck for Haskell GHC 7.8.3 on a OS X Yosemite 10.10 (14A389) system running on a Mac Pro 2013 with Xcode 6.1 (6A1052d), I'm running into the following clang error: $ cabal install QuickCheck Resolving dependencies... Configuring primitive-0.5.4.0... Building primitive-0.5.4.0... Preprocessing library primitive-0.5.4.0... [ 1 of 10] Compiling Data.Primitive.Internal.Compat ( Data/Primitive/Internal/Compat.hs, dist/build/Data/Primitive/Internal/Compat.o ) [ 2 of 10]

Clang error while installing QuickCheck for GHC 7.8.3 on OS X Yosemite 10.10 (14A389)

烈酒焚心 提交于 2019-12-23 11:59:03
问题 While installing the QuickCheck for Haskell GHC 7.8.3 on a OS X Yosemite 10.10 (14A389) system running on a Mac Pro 2013 with Xcode 6.1 (6A1052d), I'm running into the following clang error: $ cabal install QuickCheck Resolving dependencies... Configuring primitive-0.5.4.0... Building primitive-0.5.4.0... Preprocessing library primitive-0.5.4.0... [ 1 of 10] Compiling Data.Primitive.Internal.Compat ( Data/Primitive/Internal/Compat.hs, dist/build/Data/Primitive/Internal/Compat.o ) [ 2 of 10]

What is Cabal Hell?

百般思念 提交于 2019-12-23 10:13:05
问题 I am a little bit confused while reading about Cabal Hell, as the term is overloaded. I guess originally Cabal Hell referred to the diamond dependency problem, which was solved by restricting the build plan to have only a single version of any package in each build plan (two different versions of a package can't exist in a single build plan) as explained in this answer. However, the term is also used in various other contexts. Such as destructive re-installations, incorrect package dependency

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,

Can't get cabal update to work inside corporate network

痴心易碎 提交于 2019-12-23 09:23:00
问题 I'm trying to use haskell at work. I have installed the HP, but I can't get cabal to update. I assume this is some firewall or dns problem. $ cabal update Downloading the latest package list from hackage.haskell.org cabal.exe: openTCPConnection: host lookup failure for "hackage.haskell.org" Any ideas of where to start to fix this, or a workaround? 回答1: There are a number of possibilities. You will, I'm afraid, probably have to talk to your IT department. There is a flavour of firewall

Error with Cabal Mac OS(snow leopard) - ld: unknown option: -no_pie

*爱你&永不变心* 提交于 2019-12-23 08:58:19
问题 i am trying using cabal in order to install some package but i got a error like: Resolving dependencies... [1 of 1] Compiling Main ( /var/folders/qA/qAV3z3wUGnOKfufb0vx2N++++TI/-Tmp-/HUnit-1.2.4.229829/HUnit-1.2.4.2/Setup.hs, /var/folders/qA/qAV3z3wUGnOKfufb0vx2N++++TI/-Tmp-/HUnit-1.2.4.229829/HUnit-1.2.4.2/dist/setup/Main.o ) /var/folders/qA/qAV3z3wUGnOKfufb0vx2N++++TI/-Tmp-/HUnit-1.2.4.229829/HUnit-1.2.4.2/Setup.hs:6:1: Warning: In the use of `runTests' (imported from Distribution.Simple,

Trying out “cabal sandbox init” and cabal not recognizing the command “sandbox”

有些话、适合烂在心里 提交于 2019-12-23 06:52:49
问题 I'm trying out the tutorial about making a simple website with scotty but I get an error when I try the command "cabal sandbox init": cabal: unrecognised command: sandbox (try --help) Does anyone know what is wrong? 回答1: Is your Cabal/cabal-install version new enough? Sandboxes were introduced in Cabal 1.18. You can check the version with command cabal --version . You might be able to upgrade with these commands: cabal update cabal install Cabal cabal-install 来源: https://stackoverflow.com