[commit: haddock] ghc-head, master, wip/T14529, wip/revert-ttg-2017-11-20, 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: More general type for nameCacheFromGhc. (#539) (281bb7d)

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


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

On branches: ghc-head,master,wip/T14529,wip/revert-ttg-2017-11-20,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/281bb7dc19b0993622cb91b15007fb246cddb043

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

commit 281bb7dc19b0993622cb91b15007fb246cddb043
Author: Carlo Hamalainen <carlo at carlo-hamalainen.net>
Date:   Wed Nov 1 04:43:14 2017 +0800

    More general type for nameCacheFromGhc. (#539)


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

281bb7dc19b0993622cb91b15007fb246cddb043
 haddock-api/src/Haddock/InterfaceFile.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/haddock-api/src/Haddock/InterfaceFile.hs b/haddock-api/src/Haddock/InterfaceFile.hs
index 054c138..31881c7 100644
--- a/haddock-api/src/Haddock/InterfaceFile.hs
+++ b/haddock-api/src/Haddock/InterfaceFile.hs
@@ -158,7 +158,7 @@ writeInterfaceFile filename iface = do
 type NameCacheAccessor m = (m NameCache, NameCache -> m ())
 
 
-nameCacheFromGhc :: NameCacheAccessor Ghc
+nameCacheFromGhc :: forall m. (GhcMonad m, MonadIO m) => NameCacheAccessor m
 nameCacheFromGhc = ( read_from_session , write_to_session )
   where
     read_from_session = do



More information about the ghc-commits mailing list