[GHC] #9316: GHC 7.8.3 no longer infers correct type in presence of type families and constraints