Tommy Thorn writes:

> Even when taking the simple example from my previous^2 post
> 
>   ghc -c Add.hs
>   ghc -c Main.hs
>   ghc -o Main Main.o Add.o
> 
> we notice that it takes three commands, in the right order, each with

Maybe I'm hallucinating, but I'm *sure* last time I tried it the following worked:

  ghc Main.hs Add.hs

Granted the resulting executable is called a.out, and granted Main.hs and Add.hs will 
get recompiled even if they haven't been touched, but none of this is particularly 
surprising.

OTOH, some form of import chasing a la Hugs would be nice in GHC, too.  But that's a 
matter for discussion on the GHC lists.

--KW 8-)

-- 
: Keith Wansbrough, MSc, BSc(Hons) (Auckland) ------------------------:
: PhD Student, Computer Laboratory, University of Cambridge, England. :
:  (and recently of the University of Glasgow, Scotland. [><] )       :
: Native of Antipodean Auckland, New Zealand: 174d47' E, 36d55' S.    :
: http://www.cl.cam.ac.uk/users/kw217/  mailto:[EMAIL PROTECTED]     :
:---------------------------------------------------------------------:




Reply via email to