diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/tc171.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_compile/tc171.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/tc171.hs b/testsuite/tests/typecheck/should_compile/tc171.hs new file mode 100644 index 0000000000..a77b6f7fc5 --- /dev/null +++ b/testsuite/tests/typecheck/should_compile/tc171.hs @@ -0,0 +1,12 @@ + +-- Data types with no constructors + +module ShouldCompile where + +data S +data T a + +f :: [T a] -> Int +f xs = length xs + + |