diff --git a/ghc/tests/typecheck/should_compile/tc078.hs b/ghc/tests/typecheck/should_compile/tc078.hs new file mode 100644 index 0000000000000000000000000000000000000000..4625f65ac09bb212cd7e8d4e8fdd7ae40e8f6e77 --- /dev/null +++ b/ghc/tests/typecheck/should_compile/tc078.hs @@ -0,0 +1,8 @@ +--!!! instance decls with no binds +-- +module ShouldFail where + +data Bar a = MkBar Int a + +instance Eq a => Eq (Bar a) +instance Ord a => Ord (Bar a)