ghc-7.0.4: 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 CentOS possible default full paths are:

/usr/bin/ghc-7.0.4 - from package: ghc-compiler

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