Hoogle Search
Within LTS Haskell 24.34 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setBacktraceMechanismState :: BacktraceMechanism -> Bool -> IO ()base Control.Exception.Backtrace Set whether the given BacktraceMechanism will be used when collecting backtraces?
setBit :: Bits a => a -> Int -> abase Data.Bits x `setBit` i is the same as x .|. bit i
setEnv :: String -> String -> IO ()base System.Environment setEnv name value sets the specified environment variable to value. Early versions of this function operated under the mistaken belief that setting an environment variable to the empty string on Windows removes that environment variable from the environment. For the sake of compatibility, it adopted that behavior on POSIX. In particular
setEnv name ""
has the same effect asunsetEnv name
If you'd like to be able to set environment variables to blank strings, use setEnv. 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.setEnv :: String -> String -> Bool -> IO ()base System.Environment.Blank Like setEnv, but allows blank environment values and mimics the function signature of setEnv from the unix package. 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.
setAllocationCounter :: Int64 -> IO ()base System.Mem Every thread has an allocation counter that tracks how much memory has been allocated by the thread. The counter is initialized to zero, and setAllocationCounter sets the current value. The allocation counter counts *down*, so in the absence of a call to setAllocationCounter its value is the negation of the number of bytes of memory allocated by the thread. There are two things that you can do with this counter:
- Use it as a simple profiling mechanism, with getAllocationCounter.
- Use it as a resource limit. See enableAllocationLimit.
setFinalizerExceptionHandler :: (SomeException -> IO ()) -> IO ()base System.Mem.Weak Set the global action called to report exceptions thrown by weak pointer finalizers to the user.
setAddrRange# :: Addr# -> Int# -> Int# -> State# RealWorld -> State# RealWorldbase GHC.Base setAddrRange# dest len c sets all of the bytes in [dest, dest+len) to the value c. Analogous to the standard C function memset, but with a different argument order. Warning: this can fail with an unchecked exception.
setByteArray# :: MutableByteArray# d -> Int# -> Int# -> Int# -> State# d -> State# dbase GHC.Base setByteArray# ba off len c sets the byte range [off, off+len) of the MutableByteArray# to the byte c. Warning: this can fail with an unchecked exception.
setThreadAllocationCounter# :: Int64# -> State# RealWorld -> State# RealWorldbase GHC.Base Sets the allocation counter for the current thread to the given value.
setBit :: Bits a => a -> Int -> abase GHC.Bits x `setBit` i is the same as x .|. bit i