1 2 3 4 5 6
module RecordDotSyntaxA where data Foo = Foo { foo :: Int } deriving Show n :: Foo n = Foo {foo = 2}