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
Showing
- docs/users_guide/7.12.1-notes.rst 2 additions, 0 deletionsdocs/users_guide/7.12.1-notes.rst
- docs/users_guide/ghci.rst 11 additions, 12 deletionsdocs/users_guide/ghci.rst
- ghc/GhciMonad.hs 18 additions, 1 deletionghc/GhciMonad.hs
- ghc/InteractiveUI.hs 5 additions, 20 deletionsghc/InteractiveUI.hs
- testsuite/tests/ghci/should_run/T7253.script 69 additions, 0 deletionstestsuite/tests/ghci/should_run/T7253.script
- testsuite/tests/ghci/should_run/T7253.stderr 7 additions, 0 deletionstestsuite/tests/ghci/should_run/T7253.stderr
- testsuite/tests/ghci/should_run/T7253.stdout 5 additions, 0 deletionstestsuite/tests/ghci/should_run/T7253.stdout
- testsuite/tests/ghci/should_run/T9915.stderr 0 additions, 5 deletionstestsuite/tests/ghci/should_run/T9915.stderr
- testsuite/tests/ghci/should_run/all.T 1 addition, 0 deletionstestsuite/tests/ghci/should_run/all.T
- testsuite/tests/safeHaskell/ghci/p14.stderr 5 additions, 1 deletiontestsuite/tests/safeHaskell/ghci/p14.stderr
Loading
Please register or sign in to comment