Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
uniformWord8 :: StatefulGen g m => g -> m Word8random System.Random.Stateful Generates a Word8 that is uniformly distributed over the entire Word8 range. The default implementation extracts a Word8 from uniformWord32.
unsafeForeignPtrToStorableArray :: Ix i => ForeignPtr e -> (i, i) -> IO (StorableArray i e)array Data.Array.Storable.Internals Construct a StorableArray from an arbitrary ForeignPtr. It is the caller's responsibility to ensure that the ForeignPtr points to an area of memory sufficient for the specified bounds.
unsafeForeignPtrToStorableArray :: Ix i => ForeignPtr e -> (i, i) -> IO (StorableArray i e)array Data.Array.Unsafe Construct a StorableArray from an arbitrary ForeignPtr. It is the caller's responsibility to ensure that the ForeignPtr points to an area of memory sufficient for the specified bounds.
showCommandForUser :: FilePath -> [String] -> Stringprocess System.Process Given a program p and arguments args, showCommandForUser p args returns a string suitable for pasting into /bin/sh (on Unix systems) or CMD.EXE (on Windows).
waitForProcess :: ProcessHandle -> IO ExitCodeprocess System.Process Waits for the specified process to terminate, and returns its exit code. On Unix systems, may throw UserInterrupt when using delegate_ctlc. GHC Note: in order to call waitForProcess without blocking all the other threads in the system, you must compile the program with -threaded. Note that it is safe to call waitForProcess for the same process in multiple threads. When the process ends, threads blocking on this call will wake in FIFO order. When using delegate_ctlc and the process is interrupted, only the first waiting thread will throw UserInterrupt. (Since: 1.2.0.0) On Unix systems, a negative value ExitFailure -signum indicates that the child was terminated by signal signum. The signal numbers are platform-specific, so to test for a specific signal use the constants provided by System.Posix.Signals in the unix package. Note: core dumps are not reported, use System.Posix.Process if you need this detail.
withForkWait :: IO () -> (IO () -> IO a) -> IO aprocess System.Process.Internals Fork a thread while doing something else, but kill it if there's an exception. This is important in the cases above because we want to kill the thread that is holding the Handle lock, because when we clean up the process we try to close that handle, which could otherwise deadlock.
statusIsInformational :: Status -> Boolhttp-types Network.HTTP.Types Informational class Checks if the status is in the 1XX range.
-
http-types Network.HTTP.Types.Header statusIsInformational :: Status -> Boolhttp-types Network.HTTP.Types.Status Informational class Checks if the status is in the 1XX range.
byteArrayAsForeignPtr :: ByteArray -> ForeignPtr Word8primitive Data.Primitive.ByteArray Create a foreign pointer that points to the array's data. This operation is only safe on pinned byte arrays. The array's data is not garbage collected while references to the foreign pointer exist. Writing to the array through the foreign pointer results in undefined behavior.