Remove trailing whitespace
Fix Haddock comments