diff options
author | Jan Stolarek <jan.stolarek@p.lodz.pl> | 2013-08-19 13:44:04 +0100 |
---|---|---|
committer | Jan Stolarek <jan.stolarek@p.lodz.pl> | 2013-08-19 13:44:04 +0100 |
commit | d157f5f248b2dc07ce1b65c279158bab4ba400c5 (patch) | |
tree | 34f5e28eac23ba2bc678d44635c9db8c30fc3587 /testsuite/tests/typecheck/should_fail/T8142.stderr | |
parent | 0bc0e7d37f57d6f087a2eb6b6e5958ee08c2a197 (diff) | |
download | haskell-d157f5f248b2dc07ce1b65c279158bab4ba400c5.tar.gz |
Add regression test for #8142
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/T8142.stderr')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/T8142.stderr | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T8142.stderr b/testsuite/tests/typecheck/should_fail/T8142.stderr new file mode 100644 index 0000000000..22c5d64ca7 --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/T8142.stderr @@ -0,0 +1,23 @@ + +T8142.hs:6:18: + Couldn't match type ‛Nu f0’ with ‛Nu f’ + NB: ‛Nu’ is a type function, and may not be injective + The type variable ‛f0’ is ambiguous + Expected type: a -> Nu f + Actual type: a -> Nu f0 + When checking that ‛h’ + has the inferred type ‛forall (f :: * -> *) a. a -> Nu f’ + Probable cause: the inferred type is ambiguous + In an equation for ‛tracer’: + tracer + = h + where + h = (\ (_, b) -> ((outI . fmap h) b)) . out + +T8142.hs:6:57: + Occurs check: cannot construct the infinite type: a ~ f1 a + Expected type: a -> (t0, f1 a) + Actual type: Nu ((,) t0) -> (t0, Nu ((,) t0)) + Relevant bindings include h :: a -> Nu f1 (bound at T8142.hs:6:18) + In the second argument of ‛(.)’, namely ‛out’ + In the expression: (\ (_, b) -> ((outI . fmap h) b)) . out |