I have an IOArray, but it doesn't work the way I expected it to.
I defined
newMem s = newIOArray (0, size-1) 0
and then
x = newMem 30
then
do {
y - x
; v - readIOArray y 2
; print v
; writeIOArray y 2 20
; v - readIOArray y 2
; print v
}
this resulted in 0, 2 as expected.
however,
Hi,
I need some random numbers. The documentation identifies StdGen, but I can't
figure out how to invoke it. The documentation is great
in every way, except an actual example that I can essentially cut and paste.
Thanks
___
Haskell mailing list
Hi,
I have a .y and .x file. The alex -g _.x gives me a .hs file and happy -g -a
-c _.y gives me a .hs file.
I then use ghc -c alex.hs to get a a .o and a .hi file. This works great.
Unfortunately
ghc -c happy.y doesn't work -- it says that it the module name for the lexer
doesn't match.