[GHC] #12018: Equality constraint not available in pattern type signature (GADTs/ScopedTypeVariables)