Use checkRecTc to improve demand analysis slightly
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 28 May 2013 08:01:25 +0000 (09:01 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 6 Jun 2013 13:29:55 +0000 (14:29 +0100)
commit3e7e5ba8333d318c38b4cfc538a97fdca0aed5b1
treebad966c7e71c15861fb57d4627475ce4aab9c1ca
parent9b817e5b31175d445a3b4ae8215d91dccf523072
Use checkRecTc to improve demand analysis slightly

We now look inside one layer of recursive types, thanks to
checkRecTc.  It does mean we need an additional environment
field, ae_rec_tc.

I also commented out the apparently over-conservative test
at coercions.  I'm not 100% sure I'm right here, but I can't
see why the simpler code will go wrong, so I'm going to suck
it and see.
compiler/stranal/DmdAnal.lhs