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] Specify array or list size?

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

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] Monad transformers

2005-05-08 Thread Tomasz Zielonka
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