Hoogle Search

Within LTS Haskell 24.38 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. touchForeignPtr :: MonadIO m => ForeignPtr a -> m ()

    unliftio UnliftIO.Foreign

    Lifted touchForeignPtr.

  2. unsafeForeignPtrToPtr :: ForeignPtr a -> Ptr a

    unliftio UnliftIO.Foreign

    This function extracts the pointer component of a foreign pointer. This is a potentially dangerous operations, as if the argument to unsafeForeignPtrToPtr is the last usage occurrence of the given foreign pointer, then its finalizer(s) will be run, which potentially invalidates the plain pointer just obtained. Hence, touchForeignPtr must be used wherever it has to be guaranteed that the pointer lives on - i.e., has another usage occurrence. To avoid subtle coding errors, hand written marshalling code should preferably use withForeignPtr rather than combinations of unsafeForeignPtrToPtr and touchForeignPtr. However, the latter routines are occasionally preferred in tool generated marshalling code.

  3. withForeignPtr :: MonadUnliftIO m => ForeignPtr a -> (Ptr a -> m b) -> m b

    unliftio UnliftIO.Foreign

    Unlifted withForeignPtr.

  4. hWaitForInput :: MonadIO m => Handle -> Int -> m Bool

    unliftio UnliftIO.IO

    Lifted version of hWaitForInput

  5. pooledForConcurrently :: (MonadUnliftIO m, Traversable t) => t a -> (a -> m b) -> m (t b)

    unliftio UnliftIO.Internals.Async

    Similar to pooledForConcurrentlyN but with number of threads set from getNumCapabilities. Usually this is useful for CPU bound tasks.

  6. pooledForConcurrentlyN :: (MonadUnliftIO m, Traversable t) => Int -> t a -> (a -> m b) -> m (t b)

    unliftio UnliftIO.Internals.Async

    Similar to pooledMapConcurrentlyN but with flipped arguments.

  7. pooledForConcurrentlyN_ :: (MonadUnliftIO m, Foldable t) => Int -> t a -> (a -> m b) -> m ()

    unliftio UnliftIO.Internals.Async

    Like pooledMapConcurrentlyN_ but with flipped arguments.

  8. pooledForConcurrently_ :: (MonadUnliftIO m, Foldable f) => f a -> (a -> m b) -> m ()

    unliftio UnliftIO.Internals.Async

    Like pooledMapConcurrently_ but with flipped arguments.

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

    unliftio UnliftIO.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).

  10. waitForProcess :: MonadIO m => ProcessHandle -> m ExitCode

    unliftio UnliftIO.Process

    Lifted waitForProcess.

Page 424 of many | Previous | Next