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. getUserEntryForName :: ByteString -> IO UserEntry

    unix System.Posix.User.ByteString

    getUserEntryForName name calls getpwnam_r to obtain the UserEntry information associated with the user login name. This operation may fail with isDoesNotExistError if no such user exists.

  2. peekForever :: forall (m :: Type -> Type) i o . Monad m => ConduitT i o m () -> ConduitT i o m ()

    conduit Conduit

    Run a consuming conduit repeatedly, only stopping when there is no more data available from upstream.

  3. peekForeverE :: forall (m :: Type -> Type) i o . (Monad m, MonoFoldable i) => ConduitT i o m () -> ConduitT i o m ()

    conduit Conduit

    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.

  4. awaitForever :: forall (m :: Type -> Type) i o r . Monad m => (i -> ConduitT i o m r) -> ConduitT i o m ()

    conduit Data.Conduit

    Wait for input forever, calling the given inner component for each piece of new input. This function is provided as a convenience for the common pattern of awaiting input, checking if it's Just and then looping. Since 0.5.0

  5. peekForever :: forall (m :: Type -> Type) i o . Monad m => ConduitT i o m () -> ConduitT i o m ()

    conduit Data.Conduit.Combinators

    Run a consuming conduit repeatedly, only stopping when there is no more data available from upstream.

  6. peekForeverE :: forall (m :: Type -> Type) i o . (Monad m, MonoFoldable i) => ConduitT i o m () -> ConduitT i o m ()

    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.

  7. awaitForever :: forall (m :: Type -> Type) i l o r r' . Monad m => (i -> Pipe l i o r m r') -> Pipe l i o r m r

    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

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

  9. module Test.QuickCheck.Instances.Transformer

    No documentation available.

  10. resourceForkIO :: forall (m :: Type -> Type) . MonadUnliftIO m => ResourceT m () -> ResourceT m ThreadId

    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.

Page 421 of many | Previous | Next