ghc-exactprint-1.14.0.0: tests/examples/pre-ghc910/records-no-uni-update2.hs
{-# LANGUAGE PatternSynonyms #-}
module RecordPats where
-- No updates
pattern Uni{a} <- Just a
qux = a (Just True)
qux2 (Uni b) = b
foo = Uni { a = "b" }
{-# LANGUAGE PatternSynonyms #-}
module RecordPats where
-- No updates
pattern Uni{a} <- Just a
qux = a (Just True)
qux2 (Uni b) = b
foo = Uni { a = "b" }