summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/deSugar/should_compile/ds054.hs
blob: 7b05409adf2a0c7da5507a3d1351c101d4b8dcd4 (plain)
1
2
3
4
5
6
7
8
-- fails core-lint in 6.2
module ShouldCompile where

newtype Foo = Foo [Foo]
newtype Bar = Bar Foo

unBar :: Bar -> Foo
unBar (Bar x) = x