[Haskell-cafe] Compiling with NHC98

Daniel Carrera dcarrera at digitaldistribution.com
Sat May 7 17:26:14 EDT 2005


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.


More information about the Haskell-Cafe mailing list