Propagate evaluated-ness a bit more faithfully
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 22 Dec 2016 12:22:47 +0000 (12:22 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 23 Dec 2016 13:10:22 +0000 (13:10 +0000)
commit75e8c305a497ec5ad3e5a5d9ff73bbf6f7a8a000
treee26f8b779bd8dc8eef764f73e02dcf58ea0b5170
parent793ddb6574dcb62b4b74cd6fa13c77a4117ea76d
Propagate evaluated-ness a bit more faithfully

This was provoked by Trac #13027.

The fix in Simplify actually cures the reported bug; see
Note [Case binder evaluated-ness] in Simplify.

The fix in CoreTidy looks like an omission that I fixed while I
was at it.
compiler/coreSyn/CoreTidy.hs
compiler/simplCore/Simplify.hs
testsuite/tests/simplCore/should_compile/T13027.hs [new file with mode: 0644]
testsuite/tests/simplCore/should_compile/all.T