From 931904f3881ea03cadd3b8baad2f7b500589d225 Mon Sep 17 00:00:00 2001 From: Arjun Kathuria Date: Fri, 25 Jun 2021 17:00:39 +0530 Subject: [PATCH] fix minor typo in conditional windows code --- lib/GHCup.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/GHCup.hs b/lib/GHCup.hs index d5d71e9..219bf50 100644 --- a/lib/GHCup.hs +++ b/lib/GHCup.hs @@ -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.