Support GHC 7.6 with the method same as jhc's.