title: How to use continuation monad transformer with spawn/exec in purescript?
body: <p>I want to execute a command using <code>spawn</code> in <code>Node.ChildProcess</code> but i have no clue on how to hook the the function which spawns the command and the rest of the application with <code>spawn</code>. I have a vague idea that i need to use <code>ContT</code> for hooking up the error and success callbacks and am not able to figure out the data pipeline as a single program.</p>
  
  <p>This is the program I am trying to write - </p>
  
  <ol>
  <li>Wait for a request (let's say as an HTTP server)</li>
  <li>On request, write something to a file</li>
  <li>Fire a terminal command</li>
  <li>Collect output from terminal command</li>
  <li>Send response</li>
  </ol>