If the OP doesn't see any misplaced whitespace at the beginning of the
file, I'd also check that there's isn't any unicode junk there.
In particular, it was recently found that GHC doesn't ignore the byte order marks that some versions of Notepad and friends prepend to text files even in UTF8 mode.
--