Today I was experimenting with Haskell and this error struck me:

X Could not find Module Prelude

There are files missing in the base-x-x-x package,

This has an easy fix:

Install the ghc-static package

sudo pacman -S ghc-static 

Then all should compile easily.