Got a new ghc via brew 7.0.4 and then recompiled / installed haskell-platform via brew 

Not getting issue trying to compile using ideah in intellij such as

Bad interface file: /usr/local/Cellar/ghc/64-apple-darwin/lib/ghc-7.0.4/base-4.3.1.0/Prelude.hi
    magic number mismatch: old/corrupt interface file? (wanted 129742, got 33214052)

Anyone point me in the right direction as to the issue ?
Have tried trashing the project etc with no luck.

Thanks