Hoogle Search
Within LTS Haskell 24.68 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
hSetBinaryMode :: Handle -> Bool -> IO ()base System.IO Select binary mode (True) or text mode (False) on a open handle. (See also openBinaryFile.) This has the same effect as calling hSetEncoding with char8, together with hSetNewlineMode with noNewlineTranslation.
hSetBuffering :: Handle -> BufferMode -> IO ()base System.IO Computation hSetBuffering hdl mode sets the mode of buffering for handle hdl on subsequent reads and writes. If the buffer mode is changed from BlockBuffering or LineBuffering to NoBuffering, then
- if hdl is writable, the buffer is flushed as for hFlush;
- if hdl is not writable, the contents of the buffer are discarded.
- isPermissionError if the handle has already been used for reading or writing and the implementation does not allow the buffering mode to be changed.
hSetEcho :: Handle -> Bool -> IO ()base System.IO Set the echoing status of a handle connected to a terminal.
hSetEncoding :: Handle -> TextEncoding -> IO ()base System.IO The action hSetEncoding hdl encoding changes the text encoding for the handle hdl to encoding. The default encoding when a Handle is created is localeEncoding, namely the default encoding for the current locale. To create a Handle with no encoding at all, use openBinaryFile. To stop further encoding or decoding on an existing Handle, use hSetBinaryMode. hSetEncoding may need to flush buffered data in order to change the encoding.
hSetFileSize :: Handle -> Integer -> IO ()base System.IO hSetFileSize hdl size truncates the physical file with handle hdl to size bytes.
hSetNewlineMode :: Handle -> NewlineMode -> IO ()base System.IO Set the NewlineMode on the specified Handle. All buffered data is flushed first.
hSetPosn :: HandlePosn -> IO ()base System.IO If a call to hGetPosn hdl returns a position p, then computation hSetPosn p sets the position of hdl to the position it held at the time of the call to hGetPosn. This operation may fail with:
- isPermissionError if a system resource limit would be exceeded.
ioeSetErrorString :: IOError -> String -> IOErrorbase System.IO.Error No documentation available.
ioeSetErrorType :: IOError -> IOErrorType -> IOErrorbase System.IO.Error No documentation available.
ioeSetFileName :: IOError -> FilePath -> IOErrorbase System.IO.Error No documentation available.