fix minor typo in conditional windows code

This commit is contained in:
Arjun Kathuria 2021-06-25 17:00:39 +05:30
parent a40d0cbb5c
commit 931904f388
1 changed files with 1 additions and 1 deletions

View File

@ -1297,7 +1297,7 @@ rmGhcup = do
-- since it doesn't seem possible to delete a running exec in windows
-- we move it to temp dir, to be deleted at next reboot
tempDir <- liftIO $ getTemporaryDirectory
tempFilepath = tempDir </> ghcupFilename
let tempFilepath = tempDir </> ghcupFilename
liftIO $ hideError NoSuchThing $ Win32.moveFileEx ghcupFilepath (Just tempFilepath) 1
#else
-- delete it.