David Menendez wrote:

I haven't used NHC so I can't guarantee this will work, but try doing
something like this:

    $ nhc98 -c RC4.hs
    $ nhc98 -c prng.hs
    $ nhc98 RC4.o prng.o -o prng

Yay! It does. And I just put it in a makefile:

---<daniel's makefile>----
COMPILER=nhc98

RC4.o:
        $(COMPILER) -c RC4.hs

prng.o:
        $(COMPILER) -c prng.hs

prng: RC4.o  prng.o
        $(COMPILER) RC4.o prng.o -o prng
---<daniel's makefile>----

So now I just type 'make prng'. Very nice. Thanks!


Cheers, Daniel. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to