Help me to correct this code, please ! :-)

2000-09-29 Thread root
Hello, I have tried to compile a code like the following with GHC ... == module Foo where import MutableArray import ByteArray import ST import PrelArrExtra class Foo t where foo :: t -> ByteArray ix instance Ix ix => Foo (MutableByt

Re: Help me to correct this code, please ! :-)

2000-10-03 Thread Marcin 'Qrczak' Kowalczyk
Fri, 29 Sep 2000 12:26:42 -0300, [EMAIL PROTECTED] <[EMAIL PROTECTED]> pisze: > instance Ix ix => Foo (MutableByteArray s ix) where > > foo x = runST(unsafeFreezeByteArray x) Mutable objects in the ST world, parametrized by those s type variables, must be created and used "locally" in