Fix binary-trees regression from unnecessary floating in CorePrep.
authorEdward Z. Yang <ezyang@cs.stanford.edu>
Tue, 30 Aug 2016 20:55:58 +0000 (16:55 -0400)
committerBen Gamari <ben@smart-cactus.org>
Tue, 30 Aug 2016 21:50:50 +0000 (17:50 -0400)
commit83b326cda759cfd4c538595cf38ee23eb81a4c76
treebb55adf5b8dbcf2795ffcd303d66c2bad29c8aed
parent6781f37d1915ab08cdb3846839a1d485a874049b
Fix binary-trees regression from unnecessary floating in CorePrep.

In the previous patch, I handled lazy @(Int -> Int) f x
correctly, but failed to handle lazy @Int (f x) (we need
to collect arguments in f x).

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Test Plan: validate

Reviewers: simonpj, austin, bgamari, nomeata

Reviewed By: nomeata

Subscribers: simonmar, thomie

Differential Revision: https://phabricator.haskell.org/D2471
compiler/coreSyn/CorePrep.hs
testsuite/tests/simplCore/should_compile/all.T
testsuite/tests/simplCore/should_compile/par01.hs [new file with mode: 0644]
testsuite/tests/simplCore/should_compile/par01.stderr [new file with mode: 0644]