Closed Unisay closed 1 week ago
Some chores before adding new functionality:
Extracted 3 utility lookup functions:
lookupGhcId :: Compiling uni fun m ann => TH.Name -> m GHC.Id
lookupGhcName :: Compiling uni fun m ann => TH.Name -> m GHC.Name
lookupGhcTyCon :: Compiling uni fun m ann => TH.Name -> m GHC.TyCon
and used them uniformly where appropriate. This allowed to reduce some code duplication in compileExpr
compileExpr
Some chores before adding new functionality:
Extracted 3 utility lookup functions:
lookupGhcId :: Compiling uni fun m ann => TH.Name -> m GHC.Id
lookupGhcName :: Compiling uni fun m ann => TH.Name -> m GHC.Name
lookupGhcTyCon :: Compiling uni fun m ann => TH.Name -> m GHC.TyCon
and used them uniformly where appropriate. This allowed to reduce some code duplication in
compileExpr