haskell-src-exts-1.24.0: tests/examples/RecordPatternSynonyms.hs.prettyprinter.golden
{-# LANGUAGE PatternSynonyms #-}
module ShouldCompile where
pattern Single{x} = [x]
pattern Double{y, z} = (y, z)
pattern More{x} <- (x, _)
where More x = (x, Nothing)
selector :: Int
selector = x [5]
update :: [String]
update = ["String"]{x = "updated"}