hi i run into a bug in the implementation if the ST monad: f = fixST $ const $ return 'z' >>= return Main> runST f '\ Program error: Prelude.!!: negative index it looks like there is a bug with the pointers and the wrong type of thing gets written somewhere. here is another example: f = fixST $ const $ return 'z' >>= return . ord Main> runST f ('z',) bye iavor
Thanks, a bug allright. This has been fixed in the current sources &
I believe the fix has been passed along to you via Mr MDo himself,
Levent Erkok. If not, let me know.
--sigbjorn
----- Original Message -----
From: "Iavor S. Diatchki"
hi
i run into a bug in the implementation if the ST monad:
f = fixST $ const $ return 'z' >>= return
Main> runST f '\ Program error: Prelude.!!: negative index
it looks like there is a bug with the pointers and the wrong type of thing gets written somewhere.
here is another example: f = fixST $ const $ return 'z' >>= return . ord
Main> runST f ('z',)
bye iavor
_______________________________________________ Hugs-Bugs mailing list Hugs-Bugs@haskell.org http://www.haskell.org/mailman/listinfo/hugs-bugs
participants (2)
-
Iavor S. Diatchki -
Sigbjorn Finne