[commit: haddock] ghc-head, ghc-head1, wip/T14529, wip/revert-ttg-2017-11-20, wip/ttg-2017-10-13, wip/ttg-2017-10-31, wip/ttg-2017-11-06, wip/ttg2-2017-11-10, wip/ttg3-2017-11-12, wip/ttg4-constraints-2017-11-13, wip/ttg6-unrevert-2017-11-22: Account for "Remember the AvailInfo for each IE" (5fa4ef3)

git at git.haskell.org git at git.haskell.org
Tue Nov 28 11:54:54 UTC 2017


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

On branches: ghc-head,ghc-head1,wip/T14529,wip/revert-ttg-2017-11-20,wip/ttg-2017-10-13,wip/ttg-2017-10-31,wip/ttg-2017-11-06,wip/ttg2-2017-11-10,wip/ttg3-2017-11-12,wip/ttg4-constraints-2017-11-13,wip/ttg6-unrevert-2017-11-22
Link       : http://git.haskell.org/haddock.git/commitdiff/5fa4ef3028dfded480f7d54e4c736862e8892223

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

commit 5fa4ef3028dfded480f7d54e4c736862e8892223
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Tue Sep 5 06:20:53 2017 -0400

    Account for "Remember the AvailInfo for each IE"
    
    As of GHC commit f609374a55bdcf3b79f3a299104767aae2ffbf21 GHC retains the
    AvailInfo associated with each IE. @alexbiehl has a patch making proper use of
    this change, but this is just to keep things building.


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

5fa4ef3028dfded480f7d54e4c736862e8892223
 haddock-api/src/Haddock/Interface/Create.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/haddock-api/src/Haddock/Interface/Create.hs b/haddock-api/src/Haddock/Interface/Create.hs
index 62bdbcb..d9f37a4 100644
--- a/haddock-api/src/Haddock/Interface/Create.hs
+++ b/haddock-api/src/Haddock/Interface/Create.hs
@@ -105,7 +105,7 @@ createInterface tm flags modMap instIfaceMap = do
 
   let declsWithDocs = topDecls group_
 
-      exports0 = fmap (reverse . map unLoc) mayExports
+      exports0 = fmap (reverse . map (unLoc . fst)) mayExports
       exports
         | OptIgnoreExports `elem` opts = Nothing
         | otherwise = exports0



More information about the ghc-commits mailing list