diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2012-10-19 20:35:01 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2012-10-19 20:35:01 +0100 |
commit | 8e189a7d9924166e9bb4c4e0200fa64512a7d151 (patch) | |
tree | 50dc2d0b7f125ac74de2db0cefb54d4ebaade816 /compiler | |
parent | 4a738e172b53ea4c24c97ab52bfdf1ae2742bb1b (diff) | |
download | haskell-8e189a7d9924166e9bb4c4e0200fa64512a7d151.tar.gz |
Simplify code slightly; no change in behaviour
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/typecheck/TcRnDriver.lhs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/compiler/typecheck/TcRnDriver.lhs b/compiler/typecheck/TcRnDriver.lhs index 6430c95862..59ffee1b2b 100644 --- a/compiler/typecheck/TcRnDriver.lhs +++ b/compiler/typecheck/TcRnDriver.lhs @@ -1701,15 +1701,9 @@ tcRnGetInfo :: HscEnv -- *and* as a type or class constructor; -- hence the call to dataTcOccs, and we return up to two results tcRnGetInfo hsc_env name - = initTcPrintErrors hsc_env iNTERACTIVE $ - tcRnGetInfo' hsc_env name - -tcRnGetInfo' :: HscEnv - -> Name - -> TcRn (TyThing, Fixity, [ClsInst]) -tcRnGetInfo' hsc_env name = let ictxt = hsc_IC hsc_env in - setInteractiveContext hsc_env ictxt $ do + initTcPrintErrors hsc_env iNTERACTIVE $ + setInteractiveContext hsc_env ictxt $ do -- Load the interface for all unqualified types and classes -- That way we will find all the instance declarations |