Hi,

after installing the new ghc-2.09 on Linux (and Solaris), we ran into
a bug with the Posix Lib. I guess there creeped a small typo in
PosixUtil.lsh when adopting the Posix Lib to ghc-2.09. Here it is.
Is this right ?

*** fptools/hslibs/posix/src/PosixUtil.lhs      Tue Dec  2 19:34:48 1997
--- ghc-2.09.orig/fptools/hslibs/posix/src/PosixUtil.lhs        Tue Dec  2 19:32:30 
1997
***************
*** 142,152 ****
         else syserr err
  
  minusone_error :: IO Int -> String -> IO ()
  minusone_error io err = do
      rc <- io
!     if rc /= -1
         then return ()
         else syserr err
  
  -- IO versions of a few ST functions.
  
--- 142,152 ----
         else syserr err
  
  minusone_error :: IO Int -> String -> IO ()
  minusone_error io err = do
      rc <- io
!     if rc == 0
         then return ()
         else syserr err
  
  -- IO versions of a few ST functions.
  


Ciao, Stefan.
--
Stefan Westmeier                              [EMAIL PROTECTED]
Schaphuser Str. 24                        vox humana: +(49) 421  424001
D-28307 Bremen                           fax machina: +(49) 421  424045
Germany                                     cellular: +(49) 171 2672149

Stefan Westmeier                        [EMAIL PROTECTED]
BISS                                     vox humana: +(49) 421 218 4228
FB3 Uni Bremen                         fax machina: +(49) 421  218 3054

Reply via email to