1 2 3 4 5 6 7 8
{-# LANGUAGE PatternSynonyms #-} module T11039a where data A a = A a -- This should succeed pattern Q2 :: (A ~ f) => a -> f a pattern Q2 a = A a