fix warning on Windows
authorSimon Marlow <simonmar@microsoft.com>
Wed, 17 Oct 2007 12:16:45 +0000 (12:16 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Wed, 17 Oct 2007 12:16:45 +0000 (12:16 +0000)
compiler/ghci/InteractiveUI.hs

index 31ca03f..0ac7e1c 100644 (file)
@@ -425,10 +425,11 @@ interactiveLoop is_tty show_prompt =
 -- the same directory while a process is running.
 
 checkPerms :: String -> IO Bool
-checkPerms name =
 #ifdef mingw32_HOST_OS
+checkPerms _ =
   return True
 #else
+checkPerms name =
   Util.handle (\_ -> return False) $ do
      st <- getFileStatus name
      me <- getRealUserID