-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect behaviour of GHC when driven by hie-bios compiled by haskell.nix #553
Comments
This is indeed quite odd and the first thing I was thinking about was our reduced set of reinstallable libs, but as can be seen in the reproduction example, they have been set back to the stock set of ghc packages. Building ghc should be almost identical, though we do have some patches that upstream Nixpkgs does not have. I somehow doubt that just by building it via components this change would happen. |
Could it be that using the stock set is causing this? Couple of notes:
|
How possible would it be to compile ghc via haskell.nix without any of the extra patches? if only to run the repro case. |
@expipiplus1 depends on the compiler you want but should be relatively straight forward. The patches are defined here: haskell.nix/overlays/bootstrap.nix Lines 58 to 116 in 788e198
and below that you'll find the compilers. So you could just drop the haskell.nix/overlays/bootstrap.nix Lines 217 to 218 in 788e198
|
I suspect this is fairly stale, do reopen if it still happens. |
If I compile hie-bios with haskell.nix, when it checks a file which runs
reify 'id
in a TH splice, the call to reify returns garbage results. A different, incorrect type forid
every time (all alpha renamedforall a. b -> c
).Repro case here:
https://github.com/expipiplus1/hie-reload-example/tree/reify
Original issue here haskell/haskell-ide-engine#1744
The text was updated successfully, but these errors were encountered: