Improve SimplUtils.interestingArg
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 24 Dec 2015 14:40:08 +0000 (14:40 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 24 Dec 2015 14:59:57 +0000 (14:59 +0000)
commit6ec236b589d541e72eea8df84628206d26e93862
treededa3c4d974dc1e24c101b60c678797f7e4f91ce
parent3017cbcfd10fe0a364cc8b039c07a94c3b9e61cc
Improve SimplUtils.interestingArg

There were two problems here:
 - We were looking under a lambda without extending
   the in-scope env, which triggered a WARNING
   But there's no need to look under a lambda.

 - We were looking under a letrec without extending
   the in-scope env, which triggered the same WARNING
   Solution: extend the in-scope env
compiler/simplCore/SimplUtils.hs