Fix warnings about unused declarations found while compiling using ghc -Wall