Spawn a new process

In Hamler, a new process is created via the spawn functions, which are defined in Control.Process.Spawn module.

  1. -- | Create a process
  2. spawn :: forall a. IO a -> Process Pid
  3. -- | Create and link a process
  4. spawnLink :: forall a. IO a -> Process Pid
  5. -- | Create and monitor a process
  6. spawnMonitor :: forall a. IO a -> Process (Pid, Ref)