Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

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

  1. bracketOnError :: (HasCallStack, MonadMask m) => m a -> (a -> m b) -> (a -> m c) -> m c

    safe-exceptions Control.Exception.Safe

    Async safe version of bracketOnError

  2. bracketOnError_ :: (HasCallStack, MonadMask m) => m a -> m b -> m c -> m c

    safe-exceptions Control.Exception.Safe

    A variant of bracketOnError where the return value from the first computation is not required.

  3. bracketWithError :: (HasCallStack, MonadMask m) => m a -> (Maybe SomeException -> a -> m b) -> (a -> m c) -> m c

    safe-exceptions Control.Exception.Safe

    Async safe version of bracket with access to the exception in the cleanup action.

  4. bracket_ :: (HasCallStack, MonadMask m) => m a -> m b -> m c -> m c

    safe-exceptions Control.Exception.Safe

    Async safe version of bracket_

  5. bracketOnError :: IO a -> (a -> IO b) -> (a -> IO c) -> IO c

    ghc GHC.Utils.Exception

    No documentation available.

  6. bracket_ :: IO a -> IO b -> IO c -> IO c

    ghc GHC.Utils.Exception

    No documentation available.

  7. brackets :: IsLine doc => doc -> doc

    ghc GHC.Utils.Outputable

    No documentation available.

  8. brackets :: Doc -> Doc

    ghc GHC.Utils.Ppr

    No documentation available.

  9. bracketOnError :: MonadBaseControl IO m => m a -> (a -> m b) -> (a -> m c) -> m c

    lifted-base Control.Exception.Lifted

    Generalized version of bracketOnError. Note:

    • When the "acquire" or "release" computations throw exceptions any monadic side effects in m will be discarded.
    • When the "in-between" computation throws an exception any monadic side effects in m produced by that computation will be discarded but the side effects of the "acquire" computation will be retained.
    • Also, any monadic side effects in m of the "release" computation will be discarded; it is run only for its side effects in IO.
    Note that when your acquire and release computations are of type IO it will be more efficient to write:
    liftBaseOp (bracketOnError acquire release)
    

  10. bracket_ :: MonadBaseControl IO m => m a -> m b -> m c -> m c

    lifted-base Control.Exception.Lifted

    Generalized version of bracket_. Note any monadic side effects in m of both the "acquire" and "release" computations will be discarded. To keep the monadic side effects of the "acquire" computation, use bracket with constant functions instead. Note that when your acquire and release computations are of type IO it will be more efficient to write:

    liftBaseOp_ (bracket_ acquire release)
    

Page 8 of many | Previous | Next