1
Index: ghc-7.0.2/utils/haddock/src/Haddock/Interface/AttachInstances.hs
2
===================================================================
3
--- ghc-7.0.2.orig/utils/haddock/src/Haddock/Interface/AttachInstances.hs 2011-02-28 23:40:13.000000000 +0530
4
+++ ghc-7.0.2/utils/haddock/src/Haddock/Interface/AttachInstances.hs 2011-03-05 19:05:51.000000000 +0530
6
import HscTypes (withSession)
8
import MonadUtils (liftIO)
10
import TcRnDriver (tcRnGetInfo)
12
import TypeRep hiding (funTyConName)
13
import Var hiding (varName)
16
attachToExportItem iface ifaceMap instIfaceMap export =
18
ExportDecl { expItemDecl = L _ (TyClD d) } -> do
20
mb_info <- getAllInfo (unLoc (tcdLName d))
22
+ let mb_info = Nothing
28
modName = nameModule name
32
-- | Like GHC's getInfo but doesn't cut things out depending on the
33
-- interative context, which we don't set sufficiently anyway.
34
getAllInfo :: GhcMonad m => Name -> m (Maybe (TyThing,Fixity,[Instance]))
35
getAllInfo name = withSession $ \hsc_env -> do
36
(_msgs, r) <- liftIO $ tcRnGetInfo hsc_env name
41
--------------------------------------------------------------------------------
42
Index: ghc-7.0.2/utils/haddock/src/Haddock/Interface/Create.hs
43
===================================================================
44
--- ghc-7.0.2.orig/utils/haddock/src/Haddock/Interface/Create.hs 2011-02-28 23:40:13.000000000 +0530
45
+++ ghc-7.0.2/utils/haddock/src/Haddock/Interface/Create.hs 2011-03-05 19:04:57.000000000 +0530
48
-- If we can't find the declaration, it must belong to
51
mbTyThing <- liftGhcToErrMsgGhc $ lookupName t
53
+ mbTyThing <- liftGhcToErrMsgGhc $ lookupGlobalName t
55
-- show the name as exported as well as the name's
56
-- defining module (because the latter is where we
57
-- looked for the .hi/.haddock). It's to help people