
It would also be nice if ghci allowed you to continue onto a new line. Otherwise writing long complicated :def scripts is tiresome . . .
It's hard to do, unless you adopt a policy such as ending the current input with ';', which doesn't seem terribly attractive. The right way to do it is for the parser to be incremental and interact with readline, but I can't see an easy way to do that. Cheers, Simon

It would also be nice if ghci allowed you to continue onto a new line. Otherwise writing long complicated :def scripts is tiresome . . .
It's hard to do, unless you adopt a policy such as ending the current input with ';', which doesn't seem terribly attractive. The right way to do it is for the parser to be incremental and interact with readline, but I can't see an easy way to do that.
A hackish way would be to allow to escape the newline with a backslash, à la shell scripts... --KW 8-)
participants (2)
-
Keith Wansbrough
-
Simon Marlow