Or you can get the best of all worlds by combining all three!
data User = User
{ userNext :: IORef (MVar (TVar User)))
, userPrev :: IORef (MVar (TVar User)))
}
On 07/14/10 14:39, Andrew Coppin wrote:
> Serguey Zefirov wrote:
>> Use IORef. ;)
>>
>> PS
>> MVar is better, actually
>
> TVar is better still. ;-)
>
> _______________________________________________
> Haskell-Cafe mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe