Copyright | Copyright (c) Patrick Perry <patperry@stanford.edu> Sergey Vinokurov <serg.foo@gmail.com> |
---|---|
License | BSD3 |
Maintainer | Sergey Vinokurov <serg.foo@gmail.com> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Monads with an unsaveInterleaveIO-like operation.
Synopsis
- class Monad m => MonadInterleave m where
- unsafeInterleave :: m a -> m a
Documentation
class Monad m => MonadInterleave m where Source #
Monads that have an operation like unsafeInterleaveIO
.
unsafeInterleave :: m a -> m a Source #
Get the baton from the monad without doing any computation.
Instances
MonadInterleave IO Source # | |
Defined in Control.Monad.Interleave unsafeInterleave :: IO a -> IO a Source # | |
MonadInterleave (ST s) Source # | |
Defined in Control.Monad.Interleave unsafeInterleave :: ST s a -> ST s a Source # | |
MonadInterleave (ST s) Source # | |
Defined in Control.Monad.Interleave unsafeInterleave :: ST s a -> ST s a Source # |