summaryrefslogtreecommitdiff
path: root/compiler/GHC/Iface/Binary.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2021-07-23 23:35:21 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2022-05-27 09:41:34 +0100
commit6cfe39b9d325b0656c74de0b5f5ff039ced98059 (patch)
tree353ff36b6df51ebf87bdd49e6ae117b9505d9ff6 /compiler/GHC/Iface/Binary.hs
parentd5886c0ea461da4a0d36c0962daace4bde871b01 (diff)
downloadhaskell-6cfe39b9d325b0656c74de0b5f5ff039ced98059.tar.gz
Make PrimOpId record levity
This patch concerns #20155, part (1) The general idea is that since primops have curried bindings (currently in PrimOpWrappers.hs) we don't need to eta-expand them. But we /do/ need to eta-expand the levity-polymorphic ones, because they /don't/ have bindings. This patch makes a start in that direction, by identifying the levity-polymophic primops in the PrimOpId IdDetails constructor. For the moment, I'm still eta-expanding all primops (by saying that hasNoBinding returns True for all primops), because of the bug reported in #20155. But I hope that before long we can tidy that up too, and remove the TEMPORARILY stuff in hasNoBinding.
Diffstat (limited to 'compiler/GHC/Iface/Binary.hs')
0 files changed, 0 insertions, 0 deletions