summaryrefslogtreecommitdiff
path: root/testsuite/tests/hiefile/should_compile/hie001.hs
blob: 53fe63ecde34df59d9cb9e9ab791e32e815509b7 (plain)
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)