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.
Showing
- compiler/basicTypes/Id.hs 8 additions, 1 deletioncompiler/basicTypes/Id.hs
- compiler/coreSyn/CoreOpt.hs 51 additions, 7 deletionscompiler/coreSyn/CoreOpt.hs
- compiler/coreSyn/CoreUtils.hs 1 addition, 0 deletionscompiler/coreSyn/CoreUtils.hs
- testsuite/tests/simplCore/should_compile/Makefile 5 additions, 0 deletionstestsuite/tests/simplCore/should_compile/Makefile
- testsuite/tests/simplCore/should_compile/T16254.hs 14 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T16254.hs
- testsuite/tests/simplCore/should_compile/T16254.stdout 1 addition, 0 deletionstestsuite/tests/simplCore/should_compile/T16254.stdout
- testsuite/tests/simplCore/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/simplCore/should_compile/all.T
Loading
Please register or sign in to comment