compile under GHC 7.6