[Haskell-cafe] why cannot i get the value of a IORef variable ?

zaxis z_axis at 163.com
Thu Oct 22 01:02:21 EDT 2009


> let aaa = unsafePerformIO  $ newIORef []
> writeIORef aaa [1,2,3]
> readIORef aaa
[(),(),()]

sincerely!
-- 
View this message in context: http://www.nabble.com/why-cannot-i-get-the-value-of-a-IORef-variable---tp26004111p26004111.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.



More information about the Haskell-Cafe mailing list