summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/tc143.hs
blob: 316f47aade2dc5975be2ca33de109f5f14c7f465 (plain)
1
2
3
4
5
6
7
-- These two declarations get their derived instances
-- in two different ways

module ShouldCompile where

newtype Bar = Bar Int deriving Eq
data    Baz = Baz Bar deriving Eq