ghc-mod: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/ghc-mod - from package: ghc-mod

You may install the required package with command apt-get install {package}
Error in other languages:
ghc-mod: bevel nie gevind nie
ghc-mod: comandă negăsită
ghc-mod: comando não encontrado
ghc-mod: commande introuvable
ghc-mod: command not found
ghc-mod: käsku ei ole
ghc-mod: không tìm thấy lệnh
ghc-mod: komanda nerasta
ghc-mod: Kommando nicht gefunden.
ghc-mod: kommandot finns inte
ghc-mod: komut yok
ghc-mod: nie znaleziono polecenia
ghc-mod: níor aimsíodh an t-ordú
ghc-mod: no se encontró la orden
ghc-mod: no s'ha trobat l'ordre
ghc-mod: opdracht niet gevonden
ghc-mod: parancs nem található
ghc-mod: perintah tidak ditemukan
ghc-mod: príkaz nenájdený
ghc-mod: příkaz nenalezen
ghc-mod: команда не найдена
ghc-mod: командата не е открита
ghc-mod: 命令找不到
ghc-mod: コマンドが見つかりません