<p dir="ltr">If this is happening on OS X and your computer is really clang (gcc -version will say clang somewhere)....</p>
<p dir="ltr">... then please try this simple fix: Edit the compiler settings file, find the line with "Haskell CPP Flags", and add -P to the list of flags.</p>
<p dir="ltr">If that works, then the upcoming Haskell Platform release will take care of doing this, no need to hack this into cabal.</p>