Skip to content

Commit 06c987c

Browse files
committed
Fix build with path 0.6.1
1 parent 5d9b31f commit 06c987c

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/Network/HTTP/Download/Verified.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ import Network.HTTP.Types.Header (hContentLength, hContentMD5)
5555
import Path
5656
import Prelude -- Fix AMP warning
5757
import System.Directory
58-
import System.FilePath ((<.>))
58+
import qualified System.FilePath as FP ((<.>))
5959
import System.IO
6060

6161
-- | A request together with some checks to perform.
@@ -243,7 +243,7 @@ verifiedDownload DownloadRequest{..} destpath progressSink = do
243243
if p then m >> return True else return False
244244

245245
fp = toFilePath destpath
246-
fptmp = fp <.> "tmp"
246+
fptmp = fp FP.<.> "tmp"
247247
dir = toFilePath $ parent destpath
248248

249249
getShouldDownload = do

src/Stack/Fetch.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ import Stack.Types.PackageIdentifier
7575
import Stack.Types.PackageIndex
7676
import Stack.Types.PackageName
7777
import Stack.Types.Version
78-
import System.FilePath ((<.>))
7978
import qualified System.FilePath as FP
8079
import System.IO
8180
import System.PosixCompat (setFileMode)
@@ -561,7 +560,7 @@ fetchPackages' mdistDir toFetchAll = do
561560
let cabalFP =
562561
innerDest FP.</>
563562
packageNameString (packageIdentifierName ident)
564-
<.> "cabal"
563+
FP.<.> "cabal"
565564
S.writeFile cabalFP $ tfCabal toFetch
566565

567566
atomically $ modifyTVar outputVar $ Map.insert ident destDir

0 commit comments

Comments
 (0)