Hi Peder,

I'd recommend giving stack a try (https://github.com/commercialhaskell/stack). I have found it easier to use than cabal-install. Many executables will install just fine using `stack install <package-name>`. Packages that stack has trouble creating a build plan for (like hakyll) can usually be installed using the following:

stack unpack hakyll
cd hakyll-*
stack init
stack setup
stack install

`stack install` copies the resulting binaries to ~/.local/bin by default: add that to your path.

Cheers,

cydparser

 
Date: Sat, 1 Aug 2015 08:36:55 -0400
From: Peder Jakobsen <pjakobsen@gmail.com>
To: cabal-devel@haskell.org
Subject: Newbie: Can't understand cabal errors during install of
        hakyll
Message-ID: <D991FCF6-9271-49D9-AEB9-543F8A2F25CC@gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi,

Been with Haskell just for few days, and thought it would be a good exercise to run a static site generator to get familiar with various tools, and I?m already running into ?cabal hell? I think.  :(


$ cabal install hakyll
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: hakyll-4.7.2.0 (user goal)
next goal: time (dependency of hakyll-4.7.2.0)
rejecting: time-1.4.2/installed-d67... (conflict: hakyll => time>=1.5 && <1.6)
trying: time-1.5.0.1
trying: process-1.2.0.0/installed-3a4... (dependency of hakyll-4.7.2.0)
next goal: unix (dependency of process-1.2.0.0/installed-3a4...)
rejecting: unix-2.7.0.1/installed-8ad... (conflict: time==1.5.0.1, unix =>
time==1.4.2/installed-d67...)
rejecting: unix-2.7.1.0, 2.7.0.1, 2.7.0.0, 2.6.0.1, 2.6.0.0, 2.5.1.1, 2.5.1.0,
2.5.0.0, 2.4.2.0, 2.4.1.0, 2.4.0.2, 2.4.0.1, 2.4.0.0, 2.3.2.0, 2.3.1.0,
2.3.0.0, 2.2.0.0, 2.0 (conflict: process => unix==2.7.0.1/installed-8ad...)
Backjump limit reached (change with --max-backjumps).


I?m running OS X Yosemite 10.2.2 with all the latest versions of  Haskell and cabal.

Thanks  you for listening. :)

Peder