Skip to content

Commit 51d8113

Browse files
committed
Satisfy -Wunused-record-wildcards
1 parent e8bb54a commit 51d8113

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

hackage-repo-tool/src/Main.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ createPackageMetadata opts repoLoc whenWrite pkgId = do
410410

411411
-- | Find the files we need to add to the index
412412
findNewIndexFiles :: GlobalOpts -> RepoLoc -> WhenWrite -> IO [IndexPath]
413-
findNewIndexFiles opts@GlobalOpts{..} repoLoc whenWrite = do
413+
findNewIndexFiles opts@GlobalOpts{} repoLoc whenWrite = do
414414
indexTS <- getFileModTime opts repoLoc (InRep repoLayoutIndexTar)
415415
indexFiles <- getRecursiveContents absIndexDir
416416

@@ -430,7 +430,7 @@ findNewIndexFiles opts@GlobalOpts{..} repoLoc whenWrite = do
430430

431431
-- | Extract the cabal file from the package tarball and copy it to the index
432432
extractCabalFile :: GlobalOpts -> RepoLoc -> WhenWrite -> PackageIdentifier -> IO ()
433-
extractCabalFile opts@GlobalOpts{..} repoLoc whenWrite pkgId = do
433+
extractCabalFile opts@GlobalOpts{} repoLoc whenWrite pkgId = do
434434
srcTS <- getFileModTime opts repoLoc src
435435
dstTS <- getFileModTime opts repoLoc dst
436436
let skip = case whenWrite of

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ getRemoteFile :: ( Throws VerificationError
374374
-> Maybe UTCTime
375375
-> RemoteFile (f :- ()) Metadata
376376
-> Verify (Trusted a, down Metadata)
377-
getRemoteFile rep@Repository{..} cachedInfo@CachedInfo{..} isRetry mNow file = do
377+
getRemoteFile rep@Repository{} cachedInfo@CachedInfo{..} isRetry mNow file = do
378378
(targetPath, tempPath) <- getRemote' rep isRetry file
379379
verifyFileInfo' (remoteFileDefaultInfo file) targetPath tempPath
380380
signed <- throwErrorsChecked (VerificationErrorDeserialization targetPath) =<<

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ getRemote remoteConfig selectedMirror attemptNr remoteFile = do
238238
-- error we want to make sure caches get files upstream in case the validation
239239
-- error was because the cache updated files out of order.
240240
httpRequestHeaders :: RemoteConfig -> AttemptNr -> [HttpRequestHeader]
241-
httpRequestHeaders RemoteConfig{..} attemptNr =
241+
httpRequestHeaders RemoteConfig{} attemptNr =
242242
if attemptNr == 0 then defaultHeaders
243243
else HttpRequestMaxAge0 : defaultHeaders
244244
where
@@ -256,7 +256,7 @@ withMirror :: forall a.
256256
-> Maybe [Mirror] -- ^ TUF mirrors
257257
-> IO a -- ^ Callback
258258
-> IO a
259-
withMirror HttpLib{..}
259+
withMirror HttpLib{}
260260
selectedMirror
261261
logger
262262
oobMirrors

0 commit comments

Comments
 (0)