[GHC] #2150: allow definition of functions in the interpreter
GHC
trac at galois.com
Thu Mar 13 14:46:55 EDT 2008
#2150: allow definition of functions in the interpreter
-----------------------------+----------------------------------------------
Reporter: ahrivera | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: GHCi | Version: 6.8.2
Severity: normal | Resolution: worksforme
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Unknown |
-----------------------------+----------------------------------------------
Comment (by simonmar):
in fact we do have multi-line commands, thanks to Claus:
{{{
Prelude> :{
Prelude| let x =
Prelude| 1 + 2
Prelude| :}
Prelude> x
3
Prelude>
}}}
This was introduced in 6.8.2, and is documented:
[http://www.haskell.org/ghc/docs/latest/html/users_guide/interactive-
evaluation.html#ghci-stmts]
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2150#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list