Open jneira opened 2 years ago
For example GHCup.Utils.Prelude
works in my windows 10, with ghc-9.0.1
Note the error about hs-boot file
Is this with HEAD or 1.4.0?
Mine is 1.4.0, just installed with ghcup. Posting the log of
Significantly it ends with
2021-11-17 21:42:21.3711738 [ThreadId 940] INFO hls: File: D:\dev\ws\haskell\ghcup-hs\lib\GHCup\Types\JSON.hs
Hidden: no
Range: 1:1-2:1
Source: typecheck
Severity: DsError
Message:
Program error: module GHCup.Utils.File.Common cannot be linked; it is only available as a boot
module
and haskell-language-server-wrapper -d .\lib\GHCup\Utils\Prelude.hs
is succesful, without mentioning the boot module
Ah, I've also seen that error recently! Something is up with hs-boot
files. I just fixed it by getting rid of my module cycles D:
What a coincidence 1.5.0 is failing in hs-boot files for ghc and 1.4.0 also fails in hs-boot for ghcup, but no for ghc 😵
It seems this is related: https://gitlab.haskell.org/ghc/ghc/-/issues/1012
It's a combination of boot files and template haskell.
Here's a fix: https://gitlab.haskell.org/haskell/ghcup-hs/-/commit/6073ebe4764828f668049a10f6a80b67d8d2646e#note_406582 Maybe someone wants to investigate what's actually going on there?
Is this still happening?
lib/GHCup.hs
(f.e.) from our beloved cousin project