haskell / haddock

Haskell Documentation Tool
www.haskell.org/haddock/
BSD 2-Clause "Simplified" License
361 stars 243 forks source link

Build instructions don't appear to work #1540

Closed parsonsmatt closed 1 year ago

parsonsmatt commented 1 year ago

I followed the instructions for building Haddock and it isn't working:

λ ~/Projects/haddock/ main git checkout ghc-9.4
Switched to branch 'ghc-9.4'
Your branch is up to date with 'origin/ghc-9.4'.
λ ~/Projects/haddock/ ghc-9.4 cabal v2-build all
Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] trying: haddock-2.27.0 (user goal)
[__1] trying: haddock:-in-ghc-tree
[__2] next goal: haddock-api (user goal)
[__2] rejecting: haddock-api-2.27.1 (conflict: haddock -in-ghc-tree =>
haddock-api==2.27.0)
[__2] rejecting: haddock-api-2.25.1, haddock-api-2.25.0, haddock-api-2.24.2,
haddock-api-2.24.1, haddock-api-2.24.0, haddock-api-2.23.1,
haddock-api-2.23.0, haddock-api-2.22.0, haddock-api-2.21.0,
haddock-api-2.20.0, haddock-api-2.19.0.1, haddock-api-2.18.1,
haddock-api-2.17.4, haddock-api-2.17.3.1, haddock-api-2.17.3,
haddock-api-2.17.2, haddock-api-2.16.1, haddock-api-2.16.0,
haddock-api-2.15.0.2, haddock-api-2.15.0.1, haddock-api-2.15.0 (constraint
from user target requires ==2.27.1)
[__2] fail (backjumping, conflict set: haddock, haddock-api,
haddock:in-ghc-tree)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: haddock, haddock-api,
haddock:in-ghc-tree

Seems like the fix is to change the version constraint on haddock for haddock-api to be == 2.27.1 to match what's in the tree.