File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
hackage-security/src/Hackage/Security Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,13 @@ cachedVersion CachedInfo{..} remoteFile =
332332 DontCache -> Nothing
333333
334334-- | Get all cached info (if any)
335- getCachedInfo :: (Applicative m , MonadIO m ) => Repository down -> m CachedInfo
335+ getCachedInfo ::
336+ #if __GLASGOW_HASKELL__ < 800
337+ (Applicative m, MonadIO m)
338+ #else
339+ MonadIO m
340+ #endif
341+ => Repository down -> m CachedInfo
336342getCachedInfo rep = do
337343 (cachedRoot, cachedKeyEnv) <- readLocalRoot rep
338344 cachedTimestamp <- readLocalFile rep cachedKeyEnv CachedTimestamp
@@ -353,8 +359,10 @@ readLocalRoot rep = do
353359 readCachedJSON rep KeyEnv. empty cachedPath
354360 return (trustLocalFile signedRoot, rootKeys (signed signedRoot))
355361
356- readLocalFile :: ( FromJSON ReadJSON_Keys_Layout (Signed a )
357- , MonadIO m , Applicative m
362+ readLocalFile :: ( FromJSON ReadJSON_Keys_Layout (Signed a ), MonadIO m
363+ #if __GLASGOW_HASKELL__ < 800
364+ , Applicative m
365+ #endif
358366 )
359367 => Repository down -> KeyEnv -> CachedFile -> m (Maybe (Trusted a))
360368readLocalFile rep cachedKeyEnv file = do
You can’t perform that action at this time.
0 commit comments