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 theRdrName
field ofHsUnboundVar
. - Removing the
HsUnboundVar
AST constructor and replacing it withHsHole
. In the renaming and type checking phasesHsHole
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