fix #56 for GHC 7.6