machinecell-3.3.1: Arrow based stream transducers

Safe HaskellSafe
LanguageHaskell2010

Control.Arrow.Machine.Misc.Exception

Contents

Synopsis

Variations of catchP

This module provides variations of catchP.

If you use this module together with Control.Exception module of base package, import this package qualified.

catch :: Monad m => PlanT i o m a -> PlanT i o m a -> PlanT i o m a

handle :: Monad m => PlanT i o m a -> PlanT i o m a -> PlanT i o m a

bracket :: Monad m => PlanT i o m a -> (a -> PlanT i o m b) -> (a -> PlanT i o m c) -> PlanT i o m c

bracket_ :: Monad m => PlanT i o m a -> PlanT i o m b -> PlanT i o m c -> PlanT i o m c

bracketOnError :: Monad m => PlanT i o m a -> (a -> PlanT i o m b) -> (a -> PlanT i o m c) -> PlanT i o m c

finally :: Monad m => PlanT i o m a -> PlanT i o m b -> PlanT i o m a

onException :: Monad m => PlanT i o m a -> PlanT i o m b -> PlanT i o m a