Skip to content

Draft: TTG: Remove HsUnboundVar, replace with HsHole, HsUnboundVarRn/Tc

This MR addresses #21592 and #25048 by:

  • Removing the import of GHC.Types.Name.Reader in Haskell.Language.Expr in preparation for an independent haskell-syntax package. This import was used for the RdrName field of HsUnboundVar.
  • Removing the HsUnboundVar AST constructor and replacing it with HsHole. In the renaming and type checking phases HsHole is not used, but turned intoHsUnboundVarRn/HsUnboundVarTc constructors.

Closes #25048.

Clean up tasks

  • Search for HsUnboundVar in all source files and adjust comments.
Edited by Adriaan Leijnse

Merge request reports