FAQ Database Discussion Community


Cabal fails to install dependencies, but can install them if asked directly

haskell,cabal,cabal-install
I've seen a very strange recurring problem with Cabal that's interfering with my ability to get repeatable Haskell builds. I have a cabal project with a sandbox. If I do cabal install, I get errors of the form Y failed during the building phase. The exception was: ExitFailure 1 X...

Fail to install Hackage string-conversions

haskell,install,cabal,cabal-install,hackage
Problem I was installing the Hackage string-conversions. However, it fails with the error below. Error Log Configuring string-conversions-0.3.0.3... Building string-conversions-0.3.0.3... Preprocessing library string-conversions-0.3.0.3... [1 of 1] Compiling Data.String.Conversions ( Data/String/Conversions.hs, dist/build/Data/String/Conversions.o ) In-place registering string-conversions-0.3.0.3... Creating package registration file: /tmp/pkgConf-string-conversions-0.3.011675.3 cabal: Error: some packages failed to install:...

Can't update cabal from 1.16 to 1.18

haskell,cabal,cabal-install
I have cabal 1.16 installed and trying to update: [email protected]:~# cabal --version cabal-install version 1.16.0.2 using version 1.16.0 of the Cabal library Trying to update: [email protected]:~# sudo cabal install --global cabal-install cabal: There is no package named 'cabal-install'. You may need to run 'cabal update' to get the latest list...

Progress messages not appearing with cabal install for some users

haskell,configuration,ghc,cabal,cabal-install
I'm working on a team project using Haskell and whenever I compile our project using 'cabal install' I start seeing the following: $ cabal clean && cabal install cleaning... Resolving dependencies... Configuring hackathon-0.1... Building hackathon-0.1... Preprocessing executable 'hackathon' for hackathon-0.1... [ 1 of 65] Compiling Data.MaybeUtil ( src/Data/MaybeUtil.hs, dist/dist-sandbox-52369b17/build/hackathon/hackathon-tmp/Data/MaybeUtil.o )...

What is haskellng? What is the difference between 'haskellPackages' and 'haskellngPackages'?

haskell,cabal,cabal-install,nix,haskell-ng
I have been reading this StackOverflow post in which we are advised to use the haskellng package set. I have also read this but I did not understand what haskellng is. I have read this too, but I still don't know what haskellng is. Could someone please explain what haskellng...

My installed transformers version is not considered by cabal-install

haskell,cabal,cabal-install,stackage
I am totally new to Haskell an cabal and I'm trying to make yesod work. My cabal version is cabal-install version 1.20.0.3 using version 1.20.0.2 of the Cabal library This is what happends when I tru to install alex: $ cabal install alex Resolving dependencies... cabal: Could not resolve dependencies:...