Remove unused import
New line at the end of the file
Simplify Haskell solution by operating on integers, not bits