diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/T12406.stderr')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/T12406.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T12406.stderr b/testsuite/tests/typecheck/should_fail/T12406.stderr new file mode 100644 index 0000000000..85096e6184 --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/T12406.stderr @@ -0,0 +1,12 @@ + +T12406.hs:20:7: error: + • Couldn't match type ‘Ref m0’ with ‘IORef’ + Expected type: IO (Ref m0 (f0 ())) + Actual type: IO (Ref IO (f0 ())) + The type variable ‘m0’ is ambiguous + • In the first argument of ‘(>>=)’, namely ‘newRef (pure ())’ + In the expression: newRef (pure ()) >>= join . readRef + In an equation for ‘foo’: foo = newRef (pure ()) >>= join . readRef + +T12406.hs:20:28: error: + Variable not in scope: join :: m0 (f0 ()) -> IO () |