Skip to content

Exporting definition bug #4967

Description

@noughtmare

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

  1. Clone the GHC repo
  2. Check out 443d8e86464d42c52090447db2416033f3dd0901
  3. Run ./boot and configure (using configure_ghc using ghc.nix)
  4. Open compiler/GHC/Builtin/Types/Prim.hs in VSCodium
  5. Remove the byteArrayLiftedPrimTy, export
  6. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: hls-refactor-pluginIssues related to the hls-refactor-plugintype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions