[GHC] #9360: GHCi: Behave nicely on `-e`, like `ghc` and other programs

GHC ghc-devs at haskell.org
Thu Jul 24 21:48:35 UTC 2014


#9360: GHCi: Behave nicely on `-e`, like `ghc` and other programs
-------------------------------------+-------------------------------------
              Reporter:  mcandre     |            Owner:
                  Type:  feature     |           Status:  new
  request                            |        Milestone:
              Priority:  normal      |          Version:  7.8.2
             Component:  Compiler    |         Keywords:
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:              |       Difficulty:  Unknown
  Unknown/Multiple                   |       Blocked By:
       Type of failure:              |  Related Tickets:
  None/Unknown                       |
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by nomeata):

 >  I expect the expression to be evaluated as the leading expression in an
 interactive interpreter session.

 Do you mean that the expression should be evaluated, the result printed,
 and then you’d end up at the GHCi prompt?

 I would rather expect `ghci -e` to simply behave like `ghc -e`. Note that
 python and perl will either evaluate an expression from the command line
 *or* give you the REPL loop.

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


More information about the ghc-tickets mailing list