Grotesque hack on Unsafe.Coerce
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 25 Jan 2013 13:30:39 +0000 (13:30 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 25 Jan 2013 13:30:39 +0000 (13:30 +0000)
commit24c3a710abec5c9ade58cdc564d2939076bc5abb
tree93a31e053edbd58946e53fef267e04608019ff79
parente747d14ef05c7e28a9c84d720e91670549d8f5d9
Grotesque hack on Unsafe.Coerce

The hack is described in detail in Note [Meta-hack for coerce].
It's a consequence of this, perfectly legitimate, commit:

  commit 7a1480c7c590d4d2fa7a105a4eebf299e921e056
  Author: Simon Peyton Jones <simonpj@microsoft.com>
  Date:   Tue Jan 22 22:43:22 2013 +0000

      Allow eta-reduction of eval'd functions if of arity 1

      See Note [Eta reduction of an eval'd function] in CoreUtils.
      This doesn't fix Trac #7542, but that was the ticket that
      pointed out this infelicity.

   compiler/coreSyn/CoreUtils.lhs |   24 ++++++++++++++++++++++--
Unsafe/Coerce.hs