-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
class (Monad m, Functor t) <= MonadFork t m | m -> t where
fork :: forall a. m a -> m (t a)
join :: forall a. t a -> m a
class (MonadFork t m, MonadThrow e m) <= MonadKill e t m | m -> e t where
kill :: forall a. e -> t a -> m Unit
class (MonadKill e t m, MonadError e m) <= MonadBracket e t m | m -> e t where
bracket :: forall a b. m a -> (a -> m Unit) -> (a -> m b) -> m bMonadFork has a fairly obvious law of fork >=> join = id, but I'm not sure what I'd state about the others.
Metadata
Metadata
Assignees
Labels
No labels