From: Simon Marlow Date: Wed, 17 Oct 2007 12:16:45 +0000 (+0000) Subject: fix warning on Windows X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=0a7fe9ef2156ec770e85d8e64b743bb164695bef fix warning on Windows --- diff --git a/compiler/ghci/InteractiveUI.hs b/compiler/ghci/InteractiveUI.hs index 31ca03f..0ac7e1c 100644 --- a/compiler/ghci/InteractiveUI.hs +++ b/compiler/ghci/InteractiveUI.hs @@ -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