[commit: haddock] wip/ast-annotations-separate: More locations for annotations (6587e1f)

git at git.haskell.org git at git.haskell.org
Wed Jul 8 08:31:57 UTC 2015


Repository : ssh://git@git.haskell.org/haddock

On branch  : wip/ast-annotations-separate
Link       : http://git.haskell.org/haddock.git/commitdiff/6587e1fb61d0e485ca634497f55cc81975148115

>---------------------------------------------------------------

commit 6587e1fb61d0e485ca634497f55cc81975148115
Author: Alan Zimmerman <alan.zimm at gmail.com>
Date:   Mon Oct 27 22:39:21 2014 +0200

    More locations for annotations


>---------------------------------------------------------------

6587e1fb61d0e485ca634497f55cc81975148115
 src/Haddock/Interface/Create.hs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/Haddock/Interface/Create.hs b/src/Haddock/Interface/Create.hs
index 527ef3a..8b39280 100644
--- a/src/Haddock/Interface/Create.hs
+++ b/src/Haddock/Interface/Create.hs
@@ -490,10 +490,10 @@ mkExportItems
     Nothing -> fullModuleContents dflags warnings gre maps fixMap splices decls
     Just exports -> liftM concat $ mapM lookupExport exports
   where
-    lookupExport (IEVar (L _ x))       = declWith x
-    lookupExport (IEThingAbs t)        = declWith t
-    lookupExport (IEThingAll t)        = declWith t
-    lookupExport (IEThingWith t _)     = declWith t
+    lookupExport (IEVar (L _ x))         = declWith x
+    lookupExport (IEThingAbs t)          = declWith t
+    lookupExport (IEThingAll (L _ t))    = declWith t
+    lookupExport (IEThingWith (L _ t) _) = declWith t
     lookupExport (IEModuleContents m)  =
       moduleExports thisMod m dflags warnings gre exportedNames decls modMap instIfaceMap maps fixMap splices
     lookupExport (IEGroup lev docStr)  = return $



More information about the ghc-commits mailing list