[root@qa-engine1 haskell-platform-2012.2.0.0]# yum install gmp
This is just the runtime library; you will also need the compile/link-time library provided by gmp-devel. That said, the contents of the config.log mentioned in the error message would be helpful.
--