[GHC] #10770: Typeable solver has strange effects