Skip to content

Instantly share code, notes, and snippets.

@sajith
Last active May 7, 2021 12:42
Show Gist options
  • Save sajith/497f78218613ea5afc0d9e41b4b254fe to your computer and use it in GitHub Desktop.
Save sajith/497f78218613ea5afc0d9e41b4b254fe to your computer and use it in GitHub Desktop.
cabal install hakyll-4.13.4.0
$ cabal install hakyll-4.13.4.0 --installdir=/tmp/hakyll/
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: hakyll-4.13.4.0 (user goal)
[__1] trying: hakyll:+usepandoc
[__2] next goal: pandoc (dependency of hakyll +usepandoc)
[__2] rejecting: pandoc-2.10.1, pandoc-2.10 (conflict: hakyll +usepandoc =>
pandoc>=2.0.5 && <2.10)
[__2] trying: pandoc-2.9.2.1
[__3] next goal: haddock-library (dependency of pandoc)
[__3] rejecting: haddock-library-1.9.0 (conflict: pandoc =>
haddock-library>=1.8 && <1.9)
[__3] trying: haddock-library-1.8.0
[__4] next goal: base (dependency of hakyll)
[__4] rejecting: base-4.14.0.0/installed-4.14.0.0 (conflict: haddock-library
=> base>=4.7 && <4.14)
[__4] skipping: base-4.14.0.0 (has the same characteristics that caused the
previous version to fail: excluded by constraint '>=4.7 && <4.14' from
'haddock-library')
[__4] rejecting: base-4.13.0.0, base-4.12.0.0, base-4.11.1.0, base-4.11.0.0,
base-4.10.1.0, base-4.10.0.0, base-4.9.1.0, base-4.9.0.0, base-4.8.2.0,
base-4.8.1.0, base-4.8.0.0, base-4.7.0.2, base-4.7.0.1, base-4.7.0.0,
base-4.6.0.1, base-4.6.0.0, base-4.5.1.0, base-4.5.0.0, base-4.4.1.0,
base-4.4.0.0, base-4.3.1.0, base-4.3.0.0, base-4.2.0.2, base-4.2.0.1,
base-4.2.0.0, base-4.1.0.0, base-4.0.0.0, base-3.0.3.2, base-3.0.3.1
(constraint from non-upgradeable package requires installed instance)
[__4] fail (backjumping, conflict set: base, haddock-library, hakyll)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: pandoc, hakyll, hakyll:usepandoc,
base, haddock-library
Try running with --minimize-conflict-set to improve the error message.
@objact
Copy link

objact commented May 6, 2021

I am having the same problem. Were you able to find a solution?

@sajith
Copy link
Author

sajith commented May 6, 2021

I am having the same problem. Were you able to find a solution?

I'm sorry, I can't recall if and how I solved it now -- it might have just went away after the next release of panoc or hakyll. I don't seem to have kept any other notes.

@objact
Copy link

objact commented May 6, 2021

If anyone else has this problem, I have found (thanks to the Hakyll Google Group) the following solution: This error message means you cannot build Hakyll with GHC 9.0.1 bundled with base-4.15. You need to downgrade to GHC 8.10, which is bundled with base-4.14 and then you are good to go. My error message was:

Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: hakyll-4.14.0.0 (user goal)
[__1] trying: hakyll:+usepandoc
[__2] next goal: pandoc (dependency of hakyll +usepandoc)
[__2] rejecting: pandoc-2.13, pandoc-2.12 (conflict: hakyll +usepandoc =>
pandoc>=2.11 && <2.12)
[__2] trying: pandoc-2.11.4
[__3] next goal: haddock-library (dependency of pandoc)
[__3] rejecting: haddock-library-1.10.0 (conflict: pandoc =>
haddock-library>=1.8 && <1.10)
[__3] trying: haddock-library-1.9.0
[__4] next goal: base (dependency of hakyll)
[__4] rejecting: base-4.15.0.0/installed-4.15.0.0 (conflict: haddock-library
=> base>=4.5 && <4.15)
[__4] skipping: base-4.15.0.0 (has the same characteristics that caused the
previous version to fail: excluded by constraint '>=4.5 && <4.15' from
'haddock-library')
[__4] rejecting: base-4.14.1.0, base-4.14.0.0, base-4.13.0.0, base-4.12.0.0,
base-4.11.1.0, base-4.11.0.0, base-4.10.1.0, base-4.10.0.0, base-4.9.1.0,
base-4.9.0.0, base-4.8.2.0, base-4.8.1.0, base-4.8.0.0, base-4.7.0.2,
base-4.7.0.1, base-4.7.0.0, base-4.6.0.1, base-4.6.0.0, base-4.5.1.0,
base-4.5.0.0, base-4.4.1.0, base-4.4.0.0, base-4.3.1.0, base-4.3.0.0,
base-4.2.0.2, base-4.2.0.1, base-4.2.0.0, base-4.1.0.0, base-4.0.0.0,
base-3.0.3.2, base-3.0.3.1 (constraint from non-upgradeable package requires
installed instance)
[__4] fail (backjumping, conflict set: base, haddock-library, hakyll)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: pandoc, hakyll, base,
hakyll:usepandoc, haddock-library, pandoc:setup.Cabal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment