r...@163.com (Liu Junfeng) writes:I've no idea if this is the reason, but I like to think about GHCi as
> wno...@ugcs.caltech.edu (Aaron Denney) wrote in message <news:firstname.lastname@example.org>...
>> On 20 Mar 2003 19:23:05 -0800, Liu Junfeng <r...@163.com> wrote:
>>> I find that Haskell interpreter is rather difficult to use:
>>> 1."f=3" is a legal statement in Haskell, i.e. define "f" as a
>>> constant function, but a parse error occurs. "let f=3" is illegal,
>>> "let" and "in" are used together, but it works in GHCi.
>> GHCi doesn't directly let you enter Haskell statements.
> Why not,
running the IO monad. So you can enter things like
x <- readFile "foo"
and actually have x be the contents of that file. Frankly, I don't
> the Python interpreter is a good example.Do you actually use the interpreter to enter real programs? I always
use an editor for that, and I find GHCi at least as comfortable as the
Python interactive. (But I'm of course not a Python expert)
(Perhaps it'd be possible to have a (user defined?) command to edit a
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.