Simple compiler question

Wolfgang Lux wlux@uni-muenster.de
Thu, 26 Jul 2001 09:58:35 +0200


Mark Carroll wrote

> Do any of the decent Haskell compilers allow you to just type function
> definitions at an interpreter prompt and use them in subsequent
> interactions, as you'd expect from a Lisp environment?

I don't know whether you consider hbi (the interactive version of hbc) 
a decent compiler, but it supports entering definitions as well:

> let { f x = x + x };
f :: (Prelude.Num a) => a -> a
> f 3;
6   

Wolfgang


--
Wolfgang Lux				  Phone: +49-251-83-38263
Institut fuer Wirtschaftinformatik	    FAX: +49-251-83-38259
Universitaet Muenster		      Email: wlux@uni-muenster.de