[GHC] #7786: strange errors when deducing constraints