1 2 3 4 5 6 7 8 9
module Foo where data Foo = Bar { x :: Int, y :: Bool } foo a = a{x=2} bar = Bar{ x = 1, y = False} foobar = foo (id id bar)