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:
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
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.
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
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:
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
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
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
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