Hoogle Search
Within LTS Haskell 24.3 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
finally :: MonadBracket m => m a -> m b -> m afoundation Foundation.Exception No documentation available.
finally :: MonadPeelIO m => m a -> m b -> m amonad-peel Control.Exception.Peel Generalized version of finally. Note, any monadic side effects in m of the "afterward" computation will be discarded.
finally :: MonadBench m => m b -> m c -> m bAgda Agda.Utils.Benchmark We need to be able to terminate benchmarking in case of an exception.
finally :: MonadError e m => m a -> m () -> m aAgda Agda.Utils.Monad Finally for the Error class. Errors in the finally part take precedence over prior errors.
finally :: Program τ α -> Program τ γ -> Program τ αcore-program Core.Program.Exceptions Run an action and then, run a finalizer afterwards. The second action will run whether or not an exception was raised by the first one. This is like bracket above, but can be used when you know you have cleanup steps to take after your computation which do have to be run even if (especially if!) an exception is thrown but that that cleanup doesn't depend on the result of that computation or the resources used to do it. The return value γ of the subsequent action is ignored.
finally :: (MonadException m, MonadTunnelIO m) => m a -> m () -> m amonadology Control.Monad.Ology.General.Exception Variant of bracket.
finally :: Controller s a -> Controller s b -> Controller s asimple Web.Simple.Controller.Exception No documentation available.
finally :: (MonadAsync m, MonadCatch m) => m b -> Stream m a -> Stream m astreamly Streamly.Data.Stream.Prelude Run the action m b whenever the stream Stream m a stops normally, aborts due to an exception or if it is garbage collected after a partial lazy evaluation. The semantics of running the action m b are similar to the cleanup action semantics described in bracket.
>>> finally action xs = Stream.bracket (return ()) (const action) (const xs)
See also finally_ Inhibits stream fusionfinally :: (IsStream t, MonadAsync m, MonadCatch m) => m b -> t m a -> t m astreamly Streamly.Internal.Data.Stream.IsStream Run the action m b whenever the stream t m a stops normally, aborts due to an exception or if it is garbage collected after a partial lazy evaluation. The semantics of running the action m b are similar to the cleanup action semantics described in bracket. See also finally_ Inhibits stream fusion
finally :: (MonadAsync m, MonadCatch m) => m b -> Stream m a -> Stream m astreamly Streamly.Internal.Data.Stream.Prelude Run the action m b whenever the stream Stream m a stops normally, aborts due to an exception or if it is garbage collected after a partial lazy evaluation. The semantics of running the action m b are similar to the cleanup action semantics described in bracket.
>>> finally action xs = Stream.bracket (return ()) (const action) (const xs)
See also finally_ Inhibits stream fusion