Sigbjorn explains:
> The rationale that came with the Haskell 1.3 I/O proposal had some
> stuff about this, as it defined the derived operation `hIsSemiClosed':
> 
>   hIsSemiClosed     :: Handle -> IO Bool
>   hIsSemiClosed h   =  hIsOpen h                 >>= \ ho ->
>                        hIsClosed h               >>= \ hc ->
>                        return (not (ho || hc))
> 
> i.e., False should be returned for both `hIsOpen' and `hIsClosed'
> on semi-closed handles (which is what ghc's implementation of IO
> does.)

Thanks, fixed in the next release.

Alastair

Reply via email to