fixed compiling with GHC 7.8.1
Avoid deprecration warning with GHC 7.8.1