[Hat] Problems building hat with ghc-5.04