Modulerebase-1.21.2Haskell2010
Rebase.GHC.IO.Handle.Internals
- 1 type
- 44 values
- Packagerebase-1.21.2
- Exports45
- LanguageHaskell2010
- LicenceMIT
- SourceInternals.hs
like mkFileHandle, except that a Handle is created with two independent buffers, one for reading and one for writing. Used for full-duplex streams, such as network sockets.
mkFileHandle :: (RawIO dev, IODevice dev, BufferedIO dev, Typeable dev)=> devthe underlying IO device, which must support IODevice, BufferedIO and Typeable
-> FilePatha string describing the Handle, e.g. the file path for a file. Used in error messages.
-> IOMode-> Maybe TextEncoding-> NewlineMode-> IO Handle
makes a new Handle
syncs the file with the buffer, including moving the file pointer backwards in the case of a read buffer. This can fail on a non-seekable read Handle.
flushes the Char buffer only. Works on all Handles.
This function exists temporarily to avoid an unused import warning in
bytestring.
like mkFileHandle, except that a Handle is created with two independent buffers, one for reading and one for writing. Used for full-duplex streams, such as network sockets.
mkFileHandleNoFinalizer :: (RawIO dev, IODevice dev, BufferedIO dev, Typeable dev)=> devthe underlying IO device, which must support IODevice, BufferedIO and Typeable
-> FilePatha string describing the Handle, e.g. the file path for a file. Used in error messages.
-> IOMode-> Maybe TextEncoding-> NewlineMode-> IO Handle
makes a new Handle without a finalizer.