summaryrefslogtreecommitdiff
path: root/compiler/GHC/SysTools
diff options
context:
space:
mode:
authorLeif Metcalf <me@leif.nz>2021-01-20 15:33:47 +1300
committerLeif Metcalf <me@leif.nz>2021-01-25 00:55:12 -0500
commit53b8feaca2673cfae023c41745c137d897cd4ddc (patch)
treeaa90f3abc1f468e486b31467ce00f4b5a6351784 /compiler/GHC/SysTools
parentb18d9e97252c9dd12f08d3e6f56bfec6a6d2469a (diff)
downloadhaskell-wip/leif/remove-stg-lam.tar.gz
StgLam is used exclusively in the work of CoreToStg, but there's nothing in the type of StgExpr that indicates this, so we're forced throughout the Stg.* codebase to handle cases like: case expr of ... StgLam lam -> panic "Unexpected StgLam" ... This patch removes the StgLam constructor from the base StgExpr so these cases no longer need to be handled. Instead, we use a new intermediate type in CoreToStg, PreStgRhs, to represent the RHS expression of a binding.
Diffstat (limited to 'compiler/GHC/SysTools')
0 files changed, 0 insertions, 0 deletions