[GHC] #12482: Infinite compilation time when using wrongly ordered constraints