[GHC] #7253: Top-level bindings in ghci

GHC ghc-devs at haskell.org
Sat Nov 21 16:15:34 UTC 2015


#7253: Top-level bindings in ghci
-------------------------------------+-------------------------------------
        Reporter:  Feuerbach         |                Owner:  roshats
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:  8.0.1
       Component:  GHCi              |              Version:  7.6.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Other             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D1299
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"b98ff3ccb14e36145404f075349c8689762a2913/ghc"
 b98ff3cc/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="b98ff3ccb14e36145404f075349c8689762a2913"
 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
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/7253#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list