I believe you have installed the 32 bit version of Haskell platform. But, libdevil is compiled for 64 bit architecture.
You should either install the 64 bit version of Haskell platform (actually not recommended) or compile the library in 32 bits.
Personally I use the 64 bit version of Haskell without much problem (except a bug with yesod and ghc 7.4).