Fix #13233 by checking for lev-poly primops
authorRichard Eisenberg <rae@cs.brynmawr.edu>
Tue, 2 May 2017 22:56:30 +0000 (18:56 -0400)
committerBen Gamari <ben@smart-cactus.org>
Wed, 3 May 2017 03:07:26 +0000 (23:07 -0400)
commitb460d6c99316deac2b8022a4fb7dddc57c052a2a
tree040232c23154f83a2cbf8a438e2521b7774ad18d
parentb1aede61350a9c0a33c6d034de93a249c000a84c
Fix #13233 by checking for lev-poly primops

The implementation plan is all in Note [Detecting forced eta expansion]
in DsExpr.

Test Plan: ./validate, codeGen/should_fail/T13233

Reviewers: simonpj, austin, bgamari

Subscribers: rwbarton, thomie

GHC Trac Issues: #13233

Differential Revision: https://phabricator.haskell.org/D3490
18 files changed:
compiler/coreSyn/CoreLint.hs
compiler/coreSyn/CoreSyn.hs
compiler/deSugar/Check.hs
compiler/deSugar/DsArrows.hs
compiler/deSugar/DsExpr.hs
compiler/deSugar/DsMonad.hs
compiler/hsSyn/HsExpr.hs
compiler/hsSyn/HsUtils.hs
compiler/typecheck/TcBinds.hs
compiler/typecheck/TcExpr.hs
compiler/typecheck/TcMatches.hs
compiler/typecheck/TcSplice.hs
compiler/types/Kind.hs
testsuite/tests/codeGen/should_compile/T13233.hs [deleted file]
testsuite/tests/codeGen/should_compile/all.T
testsuite/tests/codeGen/should_fail/T13233.hs [new file with mode: 0644]
testsuite/tests/codeGen/should_fail/T13233.stderr [new file with mode: 0644]
testsuite/tests/codeGen/should_fail/all.T