summaryrefslogtreecommitdiff
path: root/testsuite/tests/deSugar/should_compile/ds048.hs
blob: 9274aacbea76c22f18878c84f4d3430b5f28d320 (plain)
1
2
3
4
5
6
7
-- !!! newtypes with a labelled field.
module ShouldCompile where

newtype Foo = Foo { x :: Int } deriving (Eq)

f :: Foo -> Foo -> Int
f a b = x a + x b