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.

  1. uniformWord8 :: StatefulGen g m => g -> m Word8

    random System.Random.Stateful

    Generates a Word8 that is uniformly distributed over the entire Word8 range. The default implementation extracts a Word8 from uniformWord32.

  2. 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.

  3. 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.

  4. showCommandForUser :: FilePath -> [String] -> String

    process 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).

  5. waitForProcess :: ProcessHandle -> IO ExitCode

    process 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.

  6. withForkWait :: IO () -> (IO () -> IO a) -> IO a

    process 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.

  7. statusIsInformational :: Status -> Bool

    http-types Network.HTTP.Types

    Informational class Checks if the status is in the 1XX range.

  8. hMaxForwards :: HeaderName

    http-types Network.HTTP.Types.Header

    Max-Forwards

  9. statusIsInformational :: Status -> Bool

    http-types Network.HTTP.Types.Status

    Informational class Checks if the status is in the 1XX range.

  10. byteArrayAsForeignPtr :: ByteArray -> ForeignPtr Word8

    primitive 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.

Page 414 of many | Previous | Next