More fixes for unboxed tuples
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 27 May 2016 13:34:45 +0000 (14:34 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 27 May 2016 13:38:44 +0000 (14:38 +0100)
commitb43a7936ebf77bce744d50a131d686c83f63e60b
treeee3ac1a3c6b61f87ac89bed973da1454a558efd5
parentcd50d236a4b29a9932ce4e12972db1fdd69f31be
More fixes for unboxed tuples

This is a continuation of
   commit e9e61f18a548b70693f4ccd245bc56335c94b498
   Date:   Thu May 26 15:24:53 2016 +0100
   Reduce special-casing for nullary unboxed tuple

which related to Trac #12115.  But typecheck/should_run/tcrun051
revealed that my patch was incomplete.

This fixes it, by removing another special case in Type.repType.
I had also missed a case in UnariseStg.unariseIdBinder.

I took the opportunity to add explanatory notes
  Note [Unarisation]
  Note [Unarisation and nullary tuples]
in UnariseStg
compiler/simplStg/UnariseStg.hs
compiler/types/Type.hs