 url = require('url')
 Repl = require('./repl')
-{$} = require 'atom'
+{$, Range} = require 'atom'
 
 
 module.exports =

    @activeRepl?.clearPostWindow()

  recompile: ->
    if @activeRepl
      @activeRepl.recompile()
    else


    atom.workspace.open(uri, options)
      .then (editor) =>
        setMark = (point) =>
          editor.setCursorBufferPosition(point)
          expression = editor.lineForBufferRow(point[0])
          range = [point, [point[0], expression.length - 1]]
          @destroyMarkers()

          marker = editor.markBufferRange(range, invalidate: 'touch')
          decoration = editor.decorateMarker(marker,
            type: 'line',
