Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit 281bb7d

Browse files
carlohamalainenalexbiehl
authored andcommitted
More general type for nameCacheFromGhc. (#539)
1 parent dbb505c commit 281bb7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haddock-api/src/Haddock/InterfaceFile.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ writeInterfaceFile filename iface = do
158158
type NameCacheAccessor m = (m NameCache, NameCache -> m ())
159159

160160

161-
nameCacheFromGhc :: NameCacheAccessor Ghc
161+
nameCacheFromGhc :: forall m. (GhcMonad m, MonadIO m) => NameCacheAccessor m
162162
nameCacheFromGhc = ( read_from_session , write_to_session )
163163
where
164164
read_from_session = do

0 commit comments

Comments
 (0)