diff options
Diffstat (limited to 'testsuite/tests/gadt/gadt6.hs')
-rw-r--r-- | testsuite/tests/gadt/gadt6.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/gadt/gadt6.hs b/testsuite/tests/gadt/gadt6.hs new file mode 100644 index 0000000000..606d04e8a4 --- /dev/null +++ b/testsuite/tests/gadt/gadt6.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE GADTs #-} + +module ShouldCompile where + +data T a where + T :: b -> (b->Int) -> a -> T a + +f (T b f a) = a + |