Jan-Willem Maessen writes:
> Hello.
>
> I'm in the process of trying to port some code originally written for
> hbc. This code uses lazyArray (among other things). I assume others
> may have run into this before, but have not found mention of it in any
> Haskell-related list archive. Basically, I'm wondering if anyone has
> rolled their own lazyArray for any non-hbc compiler. I'd be interested
> in any and all solutions people may have devised to implement/work
> around lazyArray. Any leads? (Please reply dierctly to me,
> [EMAIL PROTECTED], as well as to the lists.)
>
Hi,
have a look in the State in Haskell paper by Simon PJ and John
Launchbury ( http://www.dcs.gla.ac.uk/fp/drafts/state-lasc.ps.gz ) -
an implementation of lazyArray using ST is given in there.
hope that helps,
--sigbjorn