distributed-process-lifted-0.1.0.0: monad-control style typeclass and transformer instances for Process monad.

Safe HaskellNone
LanguageHaskell2010

Control.Distributed.Process.Node.Lifted

Synopsis

Documentation

closeLocalNode :: MonadBase IO m => LocalNode -> m () Source

Generalized version of putMVar.

forkProcess :: MonadBase IO m => LocalNode -> Process () -> m ProcessId Source

Generalized version of forkProcess.

runProcess :: MonadBase IO m => LocalNode -> Process () -> m () Source

Generalized version of runProcess

fromProcess :: forall a m. (NFData a, MonadBase IO m) => LocalNode -> Process a -> m a Source

A variant of runProcess which returns a value. This works just like runProcess by forking a new process with a captured MVar, but it will take the result of the computation. If the computation throws an exception, it will be re-thrown by fromProcess in the calling thread.

data LocalNode :: *

Local nodes

Instances