Re: [Haskell-cafe] Compiling with NHC98

2005-05-08 Thread Malcolm Wallace
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:

Re: [Haskell-cafe] Compiling with NHC98

2005-05-08 Thread Glynn Clements
Daniel Carrera 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

Re: [Haskell-cafe] Compiling with NHC98

2005-05-07 Thread Marcin 'Qrczak' Kowalczyk
Daniel Carrera [EMAIL PROTECTED] writes: $ nhc98 prng.hs -o prng I/O error (user-defined), call to function `userError': In file ./RC4.hi: 1:1-1:6 Found _module_ but expected a interface GHC and NHC confuse each other with prng.hi files they produce and examine, in incompatible formats.

Re: [Haskell-cafe] Compiling with NHC98

2005-05-07 Thread Daniel Carrera
Marcin 'Qrczak' Kowalczyk wrote: $ nhc98 prng.hs -o prng I/O error (user-defined), call to function `userError': In file ./RC4.hi: 1:1-1:6 Found _module_ but expected a interface GHC and NHC confuse each other with prng.hi files they produce and examine, in incompatible formats. You can delete

Re: [Haskell-cafe] Compiling with NHC98

2005-05-07 Thread David Menendez
Daniel Carrera writes: Hello, After days of effort, I finally managed to compile and install a Haskell compiler. The one I have is NHC98. So now, with my new toy, I am eager to compile my very first Haskell program (I've been using 'runhugs' so far). But I'm having problems:

Re: [Haskell-cafe] Compiling with NHC98

2005-05-07 Thread Thomas Davie
Incidentally, if you aren't already familiar with make or some other build system, I strongly recommend looking into one. Even for a project with only two files, having a build system keep track of compilation dependencies makes things a lot less tedious. In random addition to this... hmake will

Re: [Haskell-cafe] Compiling with NHC98

2005-05-07 Thread Daniel Carrera
David Menendez wrote: *.hi files are analogous to C's *.h files, except that the compiler generates them. Thanks, I learned something new today. You mentioned later that you don't have any *.hi files, so I'm guessing you didn't compile RC4.hs before you compiled prng.hs. Correct. I didn't know I

Re: [Haskell-cafe] Compiling with NHC98

2005-05-07 Thread Cale Gibbard
No look, I don't have /any/ .hi files. I don't know what a .hi file is. I don't have GHC either, I've never managed to make it compile. I just got my very first Haskell compiler (literally 10min ago). Cheers, Daniel. Just out of curiosity, what platform are you on? There seem to be builds

Re: [Haskell-cafe] Compiling with NHC98

2005-05-07 Thread Daniel Carrera
Cale Gibbard wrote: Just out of curiosity, what platform are you on? There seem to be builds of GHC available for most common ones. Solaris :-( I hate Solaris. No, I didn't choose it; this is what the school provides. But if all goes well, I'll have my very own Ubuntu Linux box within a month or