 CP = require('child_process')
 {debug} = require './util'
 {EOL} = require('os')
+EOT = "#{EOL}\x04#{EOL}"
 
 module.exports =
 class GhcModiProcessBase

            line.replace /\0/g, EOL
    if text?
      debug "sending stdin text to #{modPath}"
      process.process.stdin.write "#{text}\x04#{EOL}"
    process.onWillThrowError ({error, handle}) ->
      console.warn "Using fallback child_process because of #{error.message}"
      child = CP.execFile modPath, cmd, options, (cperror, stdout, stderr) ->

        process.stdout.once 'readable', parseData
    if text?
      debug "Loading file text for ghc-modi"
      process.stdin.write "map-file #{uri}#{EOL}#{text}#{EOT}"
      process.stdout.once 'readable', ->
        data = process.stdout.read().toString()
        if data isnt "OK#{EOL}"
