diff options
author | Mike Izbicki <mike@izbicki.me> | 2014-11-19 18:29:37 -0600 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2014-11-19 19:49:37 -0600 |
commit | bc2289e13d9586be087bd8136943dc35a0130c88 (patch) | |
tree | a45489dbdba4380c4aa532599155f878e5cbaa43 /testsuite/tests/ghci/scripts/Defer02.stderr | |
parent | d87fa343cd5d298c9fea96d65d05a20929ff97d0 (diff) | |
download | haskell-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.stderr | 8 |
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) |