Avoid repeatedly loading GHC.Prim
authorsimonpj@microsoft.com <unknown>
Fri, 6 Oct 2006 14:01:02 +0000 (14:01 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 6 Oct 2006 14:01:02 +0000 (14:01 +0000)
commitc305b14a2481b4e367a5b70981a0b8b667a95e61
treef2b91545a783c217793dc90399ea0948fdcb1e83
parent14a9478a67c6b4f43dc8bc06ef86c52ddb9e6f41
Avoid repeatedly loading GHC.Prim

This patch changes HscTypes.lookupIfaceByModule.  The problem was that
when compiling the 'base' package, we'd repeatedly reload GHC.Prim.
This is easily fixed by looking in the PIT too. A comment with
lookupIfaceByModule explains
compiler/main/HscTypes.lhs