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.
finally_sh :: Sh a -> Sh b -> Sh ashelly Shelly.Pipe see finally_sh
-
streamly-core Streamly.Data.Stream Run the action IO b whenever the stream stream stops normally, aborts due to an exception or if it is garbage collected after a partial lazy evaluation. The semantics of running the action IO b are similar to the cleanup action semantics described in bracketIO.
>>> finallyIO release = Stream.bracketIO (return ()) (const release)
See also finallyUnsafe Inhibits stream fusion -
streamly-core Streamly.Internal.Data.Stream Run the action IO b whenever the stream stream stops normally, aborts due to an exception or if it is garbage collected after a partial lazy evaluation. The semantics of running the action IO b are similar to the cleanup action semantics described in bracketIO.
>>> finallyIO release = Stream.bracketIO (return ()) (const release)
See also finallyUnsafe Inhibits stream fusion finallyUnsafe :: MonadCatch m => m b -> Stream m a -> Stream m astreamly-core Streamly.Internal.Data.Stream Like finally with following differences:
- action m b won't run if the stream is garbage collected after partial evaluation.
- has slightly better performance than finallyIO.
-
streamly-core Streamly.Internal.Data.Unfold Unfold the input a using Unfold m a b, run an action on a whenever the unfold stops normally, aborts due to an exception or if it is garbage collected after a partial lazy evaluation. The semantics of the action a -> m c are similar to the cleanup action semantics in bracket.
finally release = bracket return release
See also finally_ Inhibits stream fusion Pre-release finally_ :: MonadCatch m => (a -> m c) -> Unfold m a b -> Unfold m a bstreamly-core Streamly.Internal.Data.Unfold Like finallyIO with following differences:
- action a -> m c won't run if the stream is garbage collected after partial evaluation.
finally_ :: TCM a -> TCM b -> TCM aAgda Agda.TypeChecking.Monad.Base Execute a finalizer even when an exception is thrown. Does not catch any errors. In case both the regular computation and the finalizer throw an exception, the one of the finalizer is propagated.
-
dunai Control.Monad.Trans.MSF.Except finallyE a b executes computation a followed by computation b, even if a exits early by throwing an exception. In the latter case, the exception is re-thrown after b has been executed.
-
monadology Control.Monad.Ology.Specific.ExceptT finallyE a b executes computation a followed by computation b, even if a exits early by throwing an exception. In the latter case, the exception is re-thrown after b has been executed.
finally_ :: (IsStream t, MonadCatch m) => m b -> t m a -> t m astreamly Streamly.Internal.Data.Stream.IsStream Like finally with following differences:
- action m b won't run if the stream is garbage collected after partial evaluation.
- does not require a MonadAsync constraint.
- has slightly better performance than finally.