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:
Thomas Davie wrote:
I'm not familiar with your C++ example (not being familiar with C++),
but I think that it's a bit of a stretch of the imagination to say
that C introduces a variable of type array of 50 ints, the fact
that this is now an array of 50 integers is never checked at any
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
On Sun, May 08, 2005 at 07:54:43PM +0400, Max Vasin wrote:
Hello!
Suppose we have functions
f :: ReaderT env monad1 rtype
g :: Reader env rtype
and we need to call g from f.
Currently I write something like
f = do env - ask
let r = runReader g env
doSmth r
I