Fix a bug in unboxed sum layout generation
authorÖmer Sinan Ağacan <omeragacan@gmail.com>
Tue, 9 Aug 2016 22:30:56 +0000 (22:30 +0000)
committerÖmer Sinan Ağacan <omeragacan@gmail.com>
Tue, 9 Aug 2016 22:30:56 +0000 (22:30 +0000)
commite79bb2c10d66ec8f0c037e66c7d0a22aa887fdc1
tree60063796e57d702cb468e24f34a424e52909266a
parentdd23a4c067323cdc948a66f1c19fbd6b94374759
Fix a bug in unboxed sum layout generation

We need to maintain the invariant that the layout fields are always sorted.

Two tests that were previously broken are added.
compiler/simplStg/RepType.hs
testsuite/tests/unboxedsums/unboxedsums_unit_tests.hs