Look through newtype wrappers (Trac #16254)
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>
Thu, 24 Jan 2019 16:58:50 +0000 (17:58 +0100)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Tue, 19 Feb 2019 11:14:04 +0000 (06:14 -0500)
commit7833cf407d1f608bebb1d38bb99d3035d8d735e6
tree7ba7c4dee7bf439a38a6a10c836de4f0ccb73fc4
parentb78cc64e923716ac0512c299f42d4d0012306c05
Look through newtype wrappers (Trac #16254)

exprIsConApp_maybe could detect that I# 10 is a constructor application,
but not that Size (I# 10) is, because it was an application with a
nontrivial argument.
compiler/basicTypes/Id.hs
compiler/coreSyn/CoreOpt.hs
compiler/coreSyn/CoreUtils.hs
testsuite/tests/simplCore/should_compile/Makefile
testsuite/tests/simplCore/should_compile/T16254.hs [new file with mode: 0644]
testsuite/tests/simplCore/should_compile/T16254.stdout [new file with mode: 0644]
testsuite/tests/simplCore/should_compile/all.T