 {Range,CompositeDisposable} = require('atom')
 {HaskellGhcModMessage} = require('./haskell-ghc-mod-message')
+replaceAll = require './replace-all'
 
 module.exports =
 class EditorController

  getSymbol: (range) ->
    range=@getSymbolRange() unless range
    @editor.getTextInBufferRange range


  getInfo: ->
    range=@getSymbolRange()
    @process.getInfo @getText(), @getSymbol(range), (data,path) =>
      @showMessage range,replaceAll(data,path,@getPath())

  doCheck: ->
    @clearError()
