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

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/hsc2hs - from package: ghc
/usr/lib/ghc/bin/hsc2hs - from package: ghc

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