> Besides, it seems that TH requires the use of --make.  But
> --make cannot be used with -c.  So, TH can only be used to
> compile standalone programs, but not libraries.  Or did I
> overlook some way to get around the --make?

I wasn't aware that TH required --make.  Perhaps Simon could comment on
that.

But I'll point out that there's no problem using --make to build
libraries; indeed I started out using --make when I put together the new
hierarchical libraries before I switched to normal one-shot compilation.
The normal way to do it is to give the names of all of the source files
on the command line, like:

        $ ghc --make A.hs B.hs C.hs ...

GHC will compile all the modules in dependency order.  It will notice
that there's no Main module, and omit the link step.

Cheers,
        Simon
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to