hi, 

in ghc-2.09 (solaris) i cannot use runST with LazyST
observe:

-------------------------------------------------------------
STRICT
$ ghc strict.hs
ghc: module version changed to 1; reason: no old .hi file
paratha$ cat strict.hs
import ST
main = print $ f True

f x = runST(
  do n <- newSTRef x
     readSTRef n
  )
-------------------------------------------------------------
LAZY
$ ghc lazy.hs
 
lazy.hs:7: Value not in scope: `runST'

Compilation had errors


$ cat lazy.hs
import LazyST
main = print $ f True

f x = runST(
  do n <- newSTRef x
     readSTRef n
  )



byron

Reply via email to