I am attaching the config.log in the email.
You didn't install ghc properly, or you did and you then added its internal directory to your $PATH. The executables in /usr/local/lib/ghc-7.4.1 should not be run directly, as they require setup which is done by wrapper scripts that should be installed in /usr/local/bin if you installed it correctly.
configure:2198: checking ghc actually works
configure:2207: /usr/local/lib/ghc-7.4.1/ghc -o conftest conftest.hs
ghc: missing -B<dir> option
--