ghc-exactprint-1.9.0.0: tests/examples/pre-ghc910/records-run.hs
{-# LANGUAGE PatternSynonyms #-}
module Main where
pattern Bi{a, b} = (a, b)
foo = ("a","b")
main = do
print foo
print (a foo)
print (b foo)
print (foo {a = "c"})
print (foo {a = "fst", b = "snd"})