work with GHC 7.6