Fix warnings found while compiling using ghc -Wall