[Git][ghc/ghc][wip/T25705-1] template-haskell: fix haddocks

Teo Camarasu (@teo) gitlab at gitlab.haskell.org
Thu Mar 6 22:13:36 UTC 2025



Teo Camarasu pushed to branch wip/T25705-1 at Glasgow Haskell Compiler / GHC


Commits:
c3b5b216 by Teo Camarasu at 2025-03-06T22:12:45+00:00
template-haskell: fix haddocks

It seems that we need a direct dependency on ghc-internal, otherwise
Haddock cannot find our haddocks

The bug seems to be caused by Hadrian because if I rebuild with
cabal-install (without this extra dependency) then I get accurate
Haddocks.

Resolves #25705

- - - - -


1 changed file:

- libraries/template-haskell/template-haskell.cabal.in


Changes:

=====================================
libraries/template-haskell/template-haskell.cabal.in
=====================================
@@ -53,6 +53,10 @@ Library
 
     build-depends:
         base        >= 4.11 && < 4.22,
+        -- We don't directly depend on any of the modules from `ghc-internal`
+        -- But we need to depend on it to work around a hadrian bug.
+        -- See: https://gitlab.haskell.org/ghc/ghc/-/issues/25705
+        ghc-internal == @ProjectVersionForLib at .*,
         ghc-boot-th == @ProjectVersionMunged@
 
     other-modules:



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c3b5b216667d946f096116486b835fe717b2e63a

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c3b5b216667d946f096116486b835fe717b2e63a
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20250306/1e41e33e/attachment.html>


More information about the ghc-commits mailing list