summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell
diff options
context:
space:
mode:
authorRoman Shatsov <roshats@gmail.com>2015-11-21 15:58:34 +0100
committerBen Gamari <ben@smart-cactus.org>2015-11-21 11:15:09 -0500
commitb98ff3ccb14e36145404f075349c8689762a2913 (patch)
tree06eb4336d7637d5ecaa0bc68ae047eb524a3b03d /testsuite/tests/safeHaskell
parent2325bd4e0fad0e5872556c5a78d1a6a1873e7201 (diff)
downloadhaskell-b98ff3ccb14e36145404f075349c8689762a2913.tar.gz
Function definition in GHCi
This patch allows define and re-define functions in ghci. `let` is not required anymore (but can be used). Idea: If ghci input string can be parsed as statement then run it as statement else run it as declaration. Reviewers: mpickering, bgamari, austin Reviewed By: mpickering, bgamari, austin Subscribers: hvr, mpickering, dterei, thomie Differential Revision: https://phabricator.haskell.org/D1299 GHC Trac Issues: #7253
Diffstat (limited to 'testsuite/tests/safeHaskell')
-rw-r--r--testsuite/tests/safeHaskell/ghci/p14.stderr6
1 files changed, 5 insertions, 1 deletions
diff --git a/testsuite/tests/safeHaskell/ghci/p14.stderr b/testsuite/tests/safeHaskell/ghci/p14.stderr
index b015016622..65baafe716 100644
--- a/testsuite/tests/safeHaskell/ghci/p14.stderr
+++ b/testsuite/tests/safeHaskell/ghci/p14.stderr
@@ -1,2 +1,6 @@
-<interactive>:9:1: parse error on input ‘{-# RULES’
+<interactive>:9:25: error:
+ No instance for (Num a) arising from a use of ‘f’
+ Possible fix: add (Num a) to the context of the RULE "id/Int"
+ In the expression: f
+ When checking the transformation rule "id/Int"