diff options
Diffstat (limited to 'testsuite/tests/parser/should_fail/RecordDotSyntaxFail8.stderr')
-rw-r--r-- | testsuite/tests/parser/should_fail/RecordDotSyntaxFail8.stderr | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_fail/RecordDotSyntaxFail8.stderr b/testsuite/tests/parser/should_fail/RecordDotSyntaxFail8.stderr new file mode 100644 index 0000000000..8bf921b79f --- /dev/null +++ b/testsuite/tests/parser/should_fail/RecordDotSyntaxFail8.stderr @@ -0,0 +1,25 @@ +RecordDotSyntaxFail8.hs:37:3: + Ambiguous type variable ‘a0’ arising from a use of ‘print’ + prevents the constraint ‘(Show a0)’ from being solved. + Probable fix: use a type annotation to specify what ‘a0’ should be. + These potential instances exist: + instance Show Ordering -- Defined in ‘GHC.Show’ + instance Show Bar -- Defined at RecordDotSyntaxFail8.hs:22:41 + instance Show Baz -- Defined at RecordDotSyntaxFail8.hs:27:42 + ...plus 27 others + ...plus N instances involving out-of-scope types + (use -fprint-potential-instances to see them all) + In the first argument of ‘($)’, namely ‘print’ + In a stmt of a 'do' block: print $ ....baz.quux + In the expression: + do let a = ... + print $ ....quux + +RecordDotSyntaxFail8.hs:37:11: + No instance for (HasField "quux" Quux a0) + arising from selecting the field ‘quux’ + In the second argument of ‘($)’, namely ‘....baz.quux’ + In a stmt of a 'do' block: print $ ....baz.quux + In the expression: + do let a = ... + print $ ....quux |