Skip to content

Commit de1b75d

Browse files
committed
Redundant constraints.
1 parent 4ffbaad commit de1b75d

File tree

1 file changed

+11
-3
lines changed
  • hackage-security/src/Hackage/Security

1 file changed

+11
-3
lines changed

hackage-security/src/Hackage/Security/Client.hs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff 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
336342
getCachedInfo 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))
360368
readLocalFile rep cachedKeyEnv file = do

0 commit comments

Comments
 (0)