Type family stopped compiling on upgrade from GHC 7.6.3 to 7.8.3