Fixed GHC 7.8.2 compilation

- Also deleted trailing whitespaces