Module

Control.Monad.Cleanup

Package
purescript-specular
Repository
restaumatic/purescript-specular

#MonadCleanup Source

class MonadCleanup :: (Type -> Type) -> Constraintclass (Monad m) <= MonadCleanup m  where

Members

Instances

#CleanupT Source

newtype CleanupT :: forall k. (k -> Type) -> k -> Typenewtype CleanupT m a

Constructors

Instances

#runCleanupT Source

runCleanupT :: forall m a. MonadEffect m => CleanupT m a -> m (Tuple a (Effect Unit))

#execCleanupT Source

execCleanupT :: forall m. MonadEffect m => CleanupT m Unit -> m (Effect Unit)