diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail198.stderr')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/tcfail198.stderr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail198.stderr b/testsuite/tests/typecheck/should_fail/tcfail198.stderr new file mode 100644 index 0000000000..cc3ca54b14 --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/tcfail198.stderr @@ -0,0 +1,9 @@ + +tcfail198.hs:6:17: + Couldn't match expected type `t0 -> t1' + with actual type `forall a. [a] -> [a]' + The lambda expression `\ (x : xs) -> xs ++ ...' has one argument, + but its type `forall a. [a] -> [a]' has none + In the first argument of `Just', namely + `(\ (x : xs) -> xs ++ [x :: a])' + In the expression: Just (\ (x : xs) -> xs ++ [x :: a]) |