Your environment
Which OS do you use?
MacOS
Which version of GHC do you use and how did you install it?
9.10.3 from ghcup
How is your project built (alternative: link to the project)?
hadrian (it is GHC)
Which LSP client (editor/plugin) do you use?
VS Codium+vscode-haskell
Which version of HLS do you use and how did you install it?
2.12.0.0 from ghcup
Have you configured HLS in any way (especially: a hie.yaml file)?
Yes the GHC hie.yaml file
Steps to reproduce
- Clone the GHC repo
- Check out 443d8e86464d42c52090447db2416033f3dd0901
- Run
./boot and configure (using configure_ghc using ghc.nix)
- Open
compiler/GHC/Builtin/Types/Prim.hs in VSCodium
- Remove the
byteArrayLiftedPrimTy, export
- Try to use HLS to export
byteArrayLiftedPrimTy
Expected behaviour
It should add back byteArrayLiftedPrimTy, so that that line of the export looks like:
levity1TyVarInf, levity2TyVarInf,byteArrayLiftedPrimTyConName, byteArrayLiftedPrimTy,
Actual behaviour
It changes that line to:
levity1TyVarInf, levity2TyVarInf,byteArrayLiftedPrimTybyteArrayLiftedPrimTyConName,
Which is an error.
Your environment
Which OS do you use?
MacOS
Which version of GHC do you use and how did you install it?
9.10.3 from ghcup
How is your project built (alternative: link to the project)?
hadrian (it is GHC)
Which LSP client (editor/plugin) do you use?
VS Codium+vscode-haskell
Which version of HLS do you use and how did you install it?
2.12.0.0 from ghcup
Have you configured HLS in any way (especially: a
hie.yamlfile)?Yes the GHC hie.yaml file
Steps to reproduce
./bootand configure (usingconfigure_ghcusing ghc.nix)compiler/GHC/Builtin/Types/Prim.hsin VSCodiumbyteArrayLiftedPrimTy,exportbyteArrayLiftedPrimTyExpected behaviour
It should add back
byteArrayLiftedPrimTy,so that that line of the export looks like:Actual behaviour
It changes that line to:
Which is an error.