     @output.setGrammar \
       atom.grammars.grammarForScopeName 'text.tex.latex.haskell'
     @element.appendChild @errDiv = document.createElement 'pre'
+    @element.appendChild @promptDiv = document.createElement 'div'
     @element.appendChild @editorDiv = document.createElement 'div'
     @editorDiv.classList.add('ide-haskell-repl-editor')
     @editorDiv.appendChild @editorElement =

            line.slice(0,10000) + '...'
          else
            line
        if lines.slice(-1)[0] is '#~IDEHASKELLREPL~#'
          lines =
            if lines.slice(-2)[0]
              lines.slice(0,-1)

      lines = @editor.getScreenLineCount()
      @editorDiv.style.setProperty 'height',
        "#{lines*lh}px"
    setPrompt = (prompt) =>
      @promptDiv.innerText = prompt+'>'

    @editorElement.onDidAttach -> setEditorHeight()
    @editor.onDidChange ->
