   getInfo: (text,symbol,callback) =>
     @withTempFile text, (path,close) =>
       command = ["info",path,"",symbol]
-      @runCmd command, (lines) ->
+      @queueCmd @runCmd, command, (lines) ->
         close()
         callback lines.join('\n'), path
 
   doCheck: (text, callback) =>
     @withTempFile text, (path,close) =>
       command = ["check",path]
-      @runModCmd command, (lines) ->
+      @queueCmd @runModCmd, command, (lines) ->
         close()
         lines.forEach (line) ->
           [m,file,row,col] = line.match(/^(.*?):([0-9]+):([0-9]+):/)


  processOptions: ->
    # this is not pretty...
    rootPath = atom.project.getPaths()[0]
    sep = if process.platform=='win32' then ';' else ':'
    env = process.env

class GhcModiProcess
  editorCount: 0
  process: null
  commandQueue: []
  commandRunning: false

  constructor: ->

