hsc2hs-ghc: 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/hsc2hs-ghc - from package: ghc-compiler

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