Hoogle Search

Within LTS Haskell 24.34 (ghc-9.10.3)

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

  1. bracketNoMask :: MonadException m => m a -> (a -> m ()) -> (a -> m b) -> m b

    monadology Control.Monad.Ology.General.Exception

    Like bracket, but doesn't mask asynchronous exceptions.

  2. bracketNoMask_ :: MonadException m => m () -> m () -> m --> m

    monadology Control.Monad.Ology.General.Exception

    Variant of bracketNoMask.

  3. bracket_ :: (MonadException m, MonadTunnelIO m) => m () -> m () -> m --> m

    monadology Control.Monad.Ology.General.Exception

    Variant of bracket.

  4. bracketise :: [Chunk] -> [Chunk]

    opt-env-conf OptEnvConf.Output

    No documentation available.

  5. brackets :: Doc -> Doc

    prettyprinter-compat-ansi-wl-pprint Text.PrettyPrint.ANSI.Leijen

    No documentation available.

  6. bracketList :: Grammar Position (List :- t) (List :- t') -> Grammar Position (Sexp :- t) t'

    sexp-grammar Language.SexpGrammar

    Bracket list grammar. Runs a specified grammar on a sequence of S-exps in a bracketed list.

    >>> let grammar = bracketList (rest int)
    
    >>> encodeWith grammar [2, 3, 5, 7, 11, 13]
    Right "[2 3 5 7 11 13]"
    

  7. brackets :: SlackText -> SlackText

    slack-web Web.Slack.Experimental.Blocks

    No documentation available.

  8. bracketHandler :: IO a -> (a -> IO x) -> (a -> Handler b v c) -> Handler b v c

    snap Snap.Snaplet

    This function brackets a Handler action in resource acquisition and release. Like bracketSnap, this is provided because MonadCatchIO's bracket function doesn't work properly in the case of a short-circuit return from the action being bracketed. In order to prevent confusion regarding the effects of the aquisition and release actions on the Handler state, this function doesn't accept Handler actions for the acquire or release actions. This function will run the release action in all cases where the acquire action succeeded. This includes the following behaviors from the bracketed Snap action.

    1. Normal completion
    2. Short-circuit completion, either from calling fail or finishWith
    3. An exception being thrown.

  9. bracket' :: (IsStream t, MonadAsync m, MonadCatch m) => m b -> (b -> m c) -> (b -> m d) -> (b -> m e) -> (b -> t m a) -> t m a

    streamly Streamly.Internal.Data.Stream.IsStream

    Like bracket but can use separate cleanup actions depending on the mode of termination. bracket' before onStop onGC onException action runs action using the result of before. If the stream stops, onStop action is executed, if the stream is abandoned onGC is executed, if the stream encounters an exception onException is executed. Pre-release

  10. bracket_ :: (IsStream t, MonadCatch m) => m b -> (b -> m c) -> (b -> t m a) -> t m a

    streamly Streamly.Internal.Data.Stream.IsStream

    Like bracket but with following differences:

    • alloc action m b runs with async exceptions enabled
    • cleanup action b -> m c won't run if the stream is garbage collected after partial evaluation.
    • does not require a MonadAsync constraint.
    • has slightly better performance than bracket.
    Inhibits stream fusion Pre-release

Page 19 of many | Previous | Next