@@ -256,6 +256,11 @@ import Control.Distributed.Process.Serializable (Serializable)
256--------------------------------------------------------------------------------
256--------------------------------------------------------------------------------
258-- | Spawn a process
258-- | Spawn a process
260+-- For more information about 'Closure', see
261+-- "Control.Distributed.Process.Closure".
259spawn :: NodeId -> Closure (Process ()) -> Process ProcessId
264spawn :: NodeId -> Closure (Process ()) -> Process ProcessId
260spawn nid proc = do
265spawn nid proc = do
261 us <- getSelfPid
266 us <- getSelfPid
@@ -299,8 +304,13 @@ spawnMonitor nid proc = do
300-- | Run a process remotely and wait for it to reply
305-- | Run a process remotely and wait for it to reply
302−-- We monitor the remote process; if it dies before it can send a reply, we die
307+-- We monitor the remote process: if it dies before it can send a reply, we die
310+-- For more information about 'Static', 'SerializableDict', and 'Closure', see
311+-- "Control.Distributed.Process.Closure".
304call :: Serializable a => Static (SerializableDict a) -> NodeId -> Closure (Process a) -> Process a
314call :: Serializable a => Static (SerializableDict a) -> NodeId -> Closure (Process a) -> Process a
305call dict nid proc = do
315call dict nid proc = do
306 us <- getSelfPid
316 us <- getSelfPid