Improve the runRW magic in CorePrep
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 24 Dec 2015 14:42:34 +0000 (14:42 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 24 Dec 2015 14:59:57 +0000 (14:59 +0000)
commitd990354473239943d83ee90f8906f3737b53fe65
tree15a654b5f316d9b0ba1ac3b3685d820fc96f6cae
parent6ec236b589d541e72eea8df84628206d26e93862
Improve the runRW magic in CorePrep

Instead of substituting, just augment the environment.
Less code, more efficient.

And the previous version had a bogus in-scope set which
triggered a WARNING
compiler/coreSyn/CorePrep.hs