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.
-
conduit Data.Conduit.Combinators Run a consuming conduit repeatedly, only stopping when there is no more data available from upstream. In contrast to peekForever, this function will ignore empty chunks of data. So for example, if a stream of data contains an empty ByteString, it is still treated as empty, and the consuming function is not called.
-
conduit Data.Conduit.Internal Wait for input forever, calling the given inner Pipe for each piece of new input. Returns the upstream result type. Since 0.5.0
module Network.HTTP.Client.
MultipartFormData This module handles building multipart/form-data. Example usage:
{-# LANGUAGE OverloadedStrings #-} import Network import Network.HTTP.Client import Network.HTTP.Client.MultipartFormData import Data.Text.Encoding as TE import Control.Monad main = void $ withManager defaultManagerSettings $ \m -> do req1 <- parseRequest "http://random-cat-photo.net/cat.jpg" res <- httpLbs req1 m req2 <- parseRequest "http://example.org/~friedrich/blog/addPost.hs" flip httpLbs m =<< (formDataBody [partBS "title" "Bleaurgh" ,partBS "text" $ TE.encodeUtf8 "矢田矢田矢田矢田矢田" ,partFileSource "file1" "/home/friedrich/Photos/MyLittlePony.jpg" ,partFileRequestBody "file2" "cat.jpg" $ RequestBodyLBS $ responseBody res] req2)module Test.QuickCheck.Instances.
Transformer No documentation available.
-
resourcet Control.Monad.Trans.Resource Launch a new reference counted resource context using forkIO. This is defined as resourceForkWith forkIO. Note: Using regular forkIO inside of a ResourceT is inherently unsafe, since the forked thread may try access the resources of the parent after they are cleaned up. When you use resourceForkIO or resourceForkWith, ResourceT is made aware of the new thread, and will only cleanup resources when all threads finish. Other concurrency mechanisms, like concurrently or race, are safe to use. If you encounter InvalidAccess exceptions ("The mutable state is being accessed after cleanup"), use of forkIO is a possible culprit.
-
resourcet Control.Monad.Trans.Resource Introduce a reference-counting scheme to allow a resource context to be shared by multiple threads. Once the last thread exits, all remaining resources will be released. The first parameter is a function which will be used to create the thread, such as forkIO or async. Note that abuse of this function will greatly delay the deallocation of registered resources. This function should be used with care. A general guideline: If you are allocating a resource that should be shared by multiple threads, and will be held for a long time, you should allocate it at the beginning of a new ResourceT block and then call resourceForkWith from there.
pooledForConcurrently :: (MonadUnliftIO m, Traversable t) => t a -> (a -> m b) -> m (t b)unliftio UnliftIO.Async Similar to pooledForConcurrentlyN but with number of threads set from getNumCapabilities. Usually this is useful for CPU bound tasks.
pooledForConcurrentlyN :: (MonadUnliftIO m, Traversable t) => Int -> t a -> (a -> m b) -> m (t b)unliftio UnliftIO.Async Similar to pooledMapConcurrentlyN but with flipped arguments.
pooledForConcurrentlyN_ :: (MonadUnliftIO m, Foldable t) => Int -> t a -> (a -> m b) -> m ()unliftio UnliftIO.Async Like pooledMapConcurrentlyN_ but with flipped arguments.
pooledForConcurrently_ :: (MonadUnliftIO m, Foldable f) => f a -> (a -> m b) -> m ()unliftio UnliftIO.Async Like pooledMapConcurrently_ but with flipped arguments.