Hoogle Search
Within LTS Haskell 24.69 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
hSetBuffering :: Handle -> BufferMode -> IO ()ghc-internal GHC.Internal.IO.Handle 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 ()ghc-internal GHC.Internal.IO.Handle Set the echoing status of a handle connected to a terminal.
hSetEncoding :: Handle -> TextEncoding -> IO ()ghc-internal GHC.Internal.IO.Handle 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 ()ghc-internal GHC.Internal.IO.Handle hSetFileSize hdl size truncates the physical file with handle hdl to size bytes.
hSetNewlineMode :: Handle -> NewlineMode -> IO ()ghc-internal GHC.Internal.IO.Handle Set the NewlineMode on the specified Handle. All buffered data is flushed first.
hSetPosn :: HandlePosn -> IO ()ghc-internal GHC.Internal.IO.Handle 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.
closeTextCodecs :: Handle__ -> IO ()ghc-internal GHC.Internal.IO.Handle.Internals No documentation available.
maxRetainerSetSize :: ProfFlags -> Wordghc-internal GHC.Internal.RTS.Flags No documentation available.
-
ghc-internal GHC.Internal.System.Environment unsetEnv name removes the specified environment variable from the environment of the current process. Throws IOException if name is the empty string or contains an equals sign. Beware that this function must not be executed concurrently with getEnv, lookupEnv, getEnvironment and such. One thread reading environment variables at the same time with another one modifying them can result in a segfault, see Setenv is not Thread Safe for discussion.
-
ghc-internal GHC.Internal.System.Environment.Blank Like unsetEnv, but allows for the removal of blank environment variables. May throw an exception if the underlying platform doesn't support unsetting of environment variables. Beware that this function must not be executed concurrently with getEnv, lookupEnv, getEnvironment and such. One thread reading environment variables at the same time with another one modifying them can result in a segfault, see Setenv is not Thread Safe for discussion.