summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/Defer02.stderr
diff options
context:
space:
mode:
authorMike Izbicki <mike@izbicki.me>2014-11-19 18:29:37 -0600
committerAustin Seipp <austin@well-typed.com>2014-11-19 19:49:37 -0600
commitbc2289e13d9586be087bd8136943dc35a0130c88 (patch)
treea45489dbdba4380c4aa532599155f878e5cbaa43 /testsuite/tests/ghci/scripts/Defer02.stderr
parentd87fa343cd5d298c9fea96d65d05a20929ff97d0 (diff)
downloadhaskell-bc2289e13d9586be087bd8136943dc35a0130c88.tar.gz
ghc generates more user-friendly error messages
Test Plan: Compiled ghc fine. Opened ghci and fed it invalid code. It gave the improved error messages in response. Reviewers: austin Subscribers: thomie, simonpj, spacekitteh, rwbarton, simonmar, carter Differential Revision: https://phabricator.haskell.org/D201
Diffstat (limited to 'testsuite/tests/ghci/scripts/Defer02.stderr')
-rw-r--r--testsuite/tests/ghci/scripts/Defer02.stderr8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuite/tests/ghci/scripts/Defer02.stderr b/testsuite/tests/ghci/scripts/Defer02.stderr
index cbd2f3b64d..4f58b02695 100644
--- a/testsuite/tests/ghci/scripts/Defer02.stderr
+++ b/testsuite/tests/ghci/scripts/Defer02.stderr
@@ -27,7 +27,9 @@
In an equation for ‘c’: c (C2 x) = True
../../typecheck/should_run/Defer01.hs:28:5: Warning:
- No instance for (Num (a -> a)) arising from the literal ‘1’
+ No instance for (Num (a -> a))
+ (maybe you haven't applied enough arguments to a function?)
+ arising from the literal ‘1’
In the expression: 1
In an equation for ‘d’: d = 1
@@ -133,7 +135,9 @@
In the first argument of ‘c’, namely ‘(C2 True)’
In the first argument of ‘print’, namely ‘(c (C2 True))’
*** Exception: ../../typecheck/should_run/Defer01.hs:28:5:
- No instance for (Num (a -> a)) arising from the literal ‘1’
+ No instance for (Num (a -> a))
+ (maybe you haven't applied enough arguments to a function?)
+ arising from the literal ‘1’
In the expression: 1
In an equation for ‘d’: d = 1
(deferred type error)