projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2005-07-08 17:17:31 by sof]
[ghc-base.git]
/
GHC
/
IOBase.lhs
diff --git
a/GHC/IOBase.lhs
b/GHC/IOBase.lhs
index
0a3cfca
..
f0ce8de
100644
(file)
--- a/
GHC/IOBase.lhs
+++ b/
GHC/IOBase.lhs
@@
-30,7
+30,7
@@
module GHC.IOBase(
-- Handles, file descriptors,
FilePath,
Handle(..), Handle__(..), HandleType(..), IOMode(..), FD,
-- Handles, file descriptors,
FilePath,
Handle(..), Handle__(..), HandleType(..), IOMode(..), FD,
- isReadableHandleType, isWritableHandleType, showHandle,
+ isReadableHandleType, isWritableHandleType, isReadWriteHandleType, showHandle,
-- Buffers
Buffer(..), RawBuffer, BufferState(..), BufferList(..), BufferMode(..),
-- Buffers
Buffer(..), RawBuffer, BufferState(..), BufferList(..), BufferMode(..),
@@
-423,6
+423,9
@@
isWritableHandleType WriteHandle = True
isWritableHandleType ReadWriteHandle = True
isWritableHandleType _ = False
isWritableHandleType ReadWriteHandle = True
isWritableHandleType _ = False
+isReadWriteHandleType ReadWriteHandle{} = True
+isReadWriteHandleType _ = False
+
-- | File and directory names are values of type 'String', whose precise
-- meaning is operating system dependent. Files can be opened, yielding a
-- handle which can then be used to operate on the contents of that file.
-- | File and directory names are values of type 'String', whose precise
-- meaning is operating system dependent. Files can be opened, yielding a
-- handle which can then be used to operate on the contents of that file.