Remove unused import on Windows
[ghc-base.git] / GHC / ConsoleHandler.hs
index e4b1d03..eb5f36a 100644 (file)
@@ -26,7 +26,7 @@ module GHC.ConsoleHandler
         ) where
 
 {-
-#include "Signals.h"
+#include "rts/Signals.h"
 -}
 
 import Foreign
@@ -42,8 +42,6 @@ import Data.Typeable
 #ifdef mingw32_HOST_OS
 import Data.Maybe
 import GHC.Base
-import GHC.Num
-import GHC.Real
 #endif
 
 data Handler
@@ -148,7 +146,7 @@ flushConsole h =
                         "handle is not a file descriptor" Nothing Nothing
       Just fd -> do
         throwErrnoIfMinus1Retry_ "flushConsole" $
-           flush_console_fd (fromIntegral (fdFD fd))
+           flush_console_fd (fdFD fd)
 
 foreign import ccall unsafe "consUtils.h flush_input_console__"
         flush_console_fd :: CInt -> IO CInt