1 2 3 4 5 6 7
{-# LANGUAGE PatternSynonyms, ScopedTypeVariables #-} module ShouldFail where pattern Single x = [(x :: Int)] f :: [Bool] -> Bool f (Single x) = x