 
     @buildTarget = state?.target ? {name: 'All'}
     @buildProject = state?.project ? {name: 'Auto'}
-    @buildBuilder = state?.builder ? 'cabal'
+    @buildBuilder = state?.builder
 
     @disposables.add @upi.addPanelControl @builderElem = (document.createElement 'ide-haskell-builder'),
       events:

    @projectElem.innerText = "#{name}"

  showBuilder: ->
    name = @buildBuilder ? "cabal"
    @builderElem.innerText = "#{name}"

  setProject: ({onComplete}) ->

      atom.project.getPaths()[0] ? process.cwd()

  cabalBuild: (cmd, opts) =>
    unless @buildBuilder?
      @setBuilder onComplete: => @cabalBuild(cmd, opts)
      return

    # TODO: It shouldn't be possible to call this function until cabalProcess
    # exits. Otherwise, problems will ensue.

