       options: @processOptions(@getRootDir(buffer).getPath())
       command: 'info'
       uri: buffer.getUri()
-      text: buffer.getText()
+      text: buffer.getText() if buffer.isModified()
       args: ["", symbol]
       callback: (lines) ->
         text = lines.join('\n')

            line.match(/^(.*?):([0-9]+):([0-9]+): *(?:(Warning|Error): *)?/)
          unless match?
            console.log("Ghc-Mod says: #{line}")
            return
          [m,file,row,col,warning] = match
          severity =
            if cmd=='lint'

      options: @processOptions(@getRootDir(buffer).getPath())
      command: 'type',
      uri: buffer.getUri()
      text: buffer.getText() if buffer.isModified()
      args: ["",crange.start.row+1,crange.start.column+1]
      callback: (lines) ->
        [range,type]=lines.reduce ((acc,line) ->
