[GHC] #9954: Required constraints are not inferred for pattern synonyms involving GADTs