[commit: ghc] master: Function definition in GHCi (b98ff3c)
git at git.haskell.org
git at git.haskell.org
Sat Nov 21 16:15:52 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/b98ff3ccb14e36145404f075349c8689762a2913/ghc
>---------------------------------------------------------------
commit b98ff3ccb14e36145404f075349c8689762a2913
Author: Roman Shatsov <roshats at gmail.com>
Date: Sat Nov 21 15:58:34 2015 +0100
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
>---------------------------------------------------------------
b98ff3ccb14e36145404f075349c8689762a2913
docs/users_guide/7.12.1-notes.rst | 2 +
docs/users_guide/ghci.rst | 23 +++++-----
ghc/GhciMonad.hs | 19 +++++++-
ghc/InteractiveUI.hs | 25 ++--------
testsuite/tests/ghci/should_run/T7253.script | 69 ++++++++++++++++++++++++++++
testsuite/tests/ghci/should_run/T7253.stderr | 7 +++
testsuite/tests/ghci/should_run/T7253.stdout | 5 ++
testsuite/tests/ghci/should_run/T9915.stderr | 5 --
testsuite/tests/ghci/should_run/all.T | 1 +
testsuite/tests/safeHaskell/ghci/p14.stderr | 6 ++-
10 files changed, 123 insertions(+), 39 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc b98ff3ccb14e36145404f075349c8689762a2913
More information about the ghc-commits
mailing list