#3328: base's FD.hs defines exports setNonBlockingMode on Windows hosts
--------------------+-------------------------------------------------------
Reporter:  shu      |          Owner:          
    Type:  bug      |         Status:  new     
Priority:  normal   |      Component:  Compiler
 Version:  6.11     |       Severity:  normal  
Keywords:           |       Testcase:          
      Os:  Windows  |   Architecture:  x86     
--------------------+-------------------------------------------------------
 6.11 currently does not compile under Windows due to `setNonBlockingMode`
 in base/GHC/IO/FD.hs.

 I'm not sure what the behavior of it should be on Windows, perhaps
 identity on `fd`:

 {{{
 setNonBlockingMode :: FD -> Bool -> IO FD
 #ifndef mingw32_HOST_OS
 setNonBlockingMode fd set = do
   setNonBlockingFD (fdFD fd) set
   return fd{ fdIsNonBlocking = fromEnum set }
 #else
 setNonBlockingMode fd _ = return fd
 #endif
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3328>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to