couple path separator fixes
This commit is contained in:
parent
a1f8771d2b
commit
8063d68b02
1 changed files with 2 additions and 2 deletions
4
Test.hs
4
Test.hs
|
@ -1102,13 +1102,13 @@ tmpdir :: String
|
||||||
tmpdir = ".t"
|
tmpdir = ".t"
|
||||||
|
|
||||||
mainrepodir :: FilePath
|
mainrepodir :: FilePath
|
||||||
mainrepodir = tmpdir ++ "/repo"
|
mainrepodir = tmpdir </> "repo"
|
||||||
|
|
||||||
tmprepodir :: IO FilePath
|
tmprepodir :: IO FilePath
|
||||||
tmprepodir = go (0 :: Int)
|
tmprepodir = go (0 :: Int)
|
||||||
where
|
where
|
||||||
go n = do
|
go n = do
|
||||||
let d = tmpdir ++ "/tmprepo" ++ show n
|
let d = tmpdir </> "tmprepo" ++ show n
|
||||||
ifM (doesDirectoryExist d)
|
ifM (doesDirectoryExist d)
|
||||||
( go $ n + 1
|
( go $ n + 1
|
||||||
, return d
|
, return d
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue