if statement to not break for ghc < 7.8 added