Hoogle Search

Within LTS Haskell 24.52 (ghc-9.10.3)

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

  1. tryReadTMVar :: TMVar a -> STM (Maybe a)

    relude Relude.Lifted.Concurrent

    A version of readTMVar which does not retry. Instead it returns Nothing if no value is available.

  2. class Monad m => MonadReader r (m :: Type -> Type) | m -> r

    relude Relude.Monad.Reexport

    See examples in Control.Monad.Reader. Note, the partially applied function type (->) r is a simple reader monad. See the instance declaration below.

  3. runReader :: Reader r a -> r -> a

    relude Relude.Monad.Reexport

    Runs a Reader and extracts the final value from it. (The inverse of reader.)

  4. runReaderT :: ReaderT r (m :: Type -> Type) a -> r -> m a

    relude Relude.Monad.Reexport

    No documentation available.

  5. withReader :: (r' -> r) -> Reader r a -> Reader r' a

    relude Relude.Monad.Reexport

    Execute a computation in a modified environment (a specialization of withReaderT).

  6. withReaderT :: forall r' r (m :: Type -> Type) a . (r' -> r) -> ReaderT r m a -> ReaderT r' m a

    relude Relude.Monad.Reexport

    Execute a computation in a modified environment (a more general version of local).

  7. etaReaderT :: forall r (m :: Type -> Type) a . ReaderT r m a -> ReaderT r m a

    relude Relude.Monad.Trans

    This function helps with optimizing performance when working with the ReaderT transformer. If you have code like below, that is called in a loop

    step :: Instruction -> ReaderT Config IO Result
    step instruction = case instruction of
    Add -> do stuff ...
    Del -> do stuff ...
    
    you can improve performance of your Haskell applications by using etaReaderT in the following way:
    step :: Instruction -> ReaderT Config IO Result
    step instruction = etaReaderT $ case instruction of
    Add -> do stuff ...
    Del -> do stuff ...
    
    For a detailed explanation, refer to the following blog post:

  8. usingReader :: r -> Reader r a -> a

    relude Relude.Monad.Trans

    Shorter and more readable alias for flip runReader.

    >>> usingReader 42 $ asks (+5)
    47
    

  9. usingReaderT :: r -> ReaderT r m a -> m a

    relude Relude.Monad.Trans

    Shorter and more readable alias for flip runReaderT.

    >>> usingReaderT 42 $ asks (+5)
    47
    

  10. processThread :: LocalProcess -> !ThreadId

    distributed-process Control.Distributed.Process.Internal.Types

    No documentation available.

Page 516 of many | Previous | Next