monad-interleave-0.2: Monads with an unsaveInterleaveIO-like operation.
CopyrightCopyright (c) Patrick Perry <patperry@stanford.edu> Sergey Vinokurov <serg.foo@gmail.com>
LicenseBSD3
MaintainerSergey Vinokurov <serg.foo@gmail.com>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Control.Monad.Interleave

Description

Monads with an unsaveInterleaveIO-like operation.

Synopsis

Documentation

class Monad m => MonadInterleave m where Source #

Monads that have an operation like unsafeInterleaveIO.

Methods

unsafeInterleave :: m a -> m a Source #

Get the baton from the monad without doing any computation.

Instances

Instances details
MonadInterleave IO Source # 
Instance details

Defined in Control.Monad.Interleave

Methods

unsafeInterleave :: IO a -> IO a Source #

MonadInterleave (ST s) Source # 
Instance details

Defined in Control.Monad.Interleave

Methods

unsafeInterleave :: ST s a -> ST s a Source #

MonadInterleave (ST s) Source # 
Instance details

Defined in Control.Monad.Interleave

Methods

unsafeInterleave :: ST s a -> ST s a Source #