@@ -191,9 +191,8 @@ promptPassword = do
191191-- | Turn the given settings into an @Uploader@.
192192--
193193-- Since 0.1.0.0
194- mkUploader :: FilePath -- ^ runghc
195- -> Config -> UploadSettings -> IO Uploader
196- mkUploader runghc config us = do
194+ mkUploader :: Config -> UploadSettings -> IO Uploader
195+ mkUploader config us = do
197196 manager <- usGetManager us
198197 (creds, fromFile') <- loadCreds $ usCredsSource us config
199198 when (not fromFile' && usSaveCreds us) $ saveCreds config creds
@@ -203,7 +202,7 @@ mkUploader runghc config us = do
203202 , checkStatus = \ _ _ _ -> Nothing
204203 }
205204 return Uploader
206- { upload_ = \ fp0 -> withTarball runghc fp0 $ \ fp -> do
205+ { upload_ = \ fp0 -> withTarball fp0 $ \ fp -> do
207206 let formData = [partFile " package" fp]
208207 req2 <- formDataBody formData req1
209208 let req3 = applyBasicAuth
@@ -238,9 +237,8 @@ mkUploader runghc config us = do
238237
239238-- | Given either a file, return it. Given a directory, run @cabal sdist@ and
240239-- get the resulting tarball.
241- withTarball :: FilePath -- ^ runghc
242- -> FilePath -> (FilePath -> IO a ) -> IO a
243- withTarball _runghc fp0 inner = do
240+ withTarball :: FilePath -> (FilePath -> IO a ) -> IO a
241+ withTarball fp0 inner = do
244242 isFile <- doesFileExist fp0
245243 if isFile then inner fp0 else withSystemTempDirectory " stackage-upload-tarball" $ \ dir -> do
246244 isDir <- doesDirectoryExist fp0
0 commit comments