[Haskell-cafe] MVar style question

Mike Gunter m at ryangunter.com
Thu Jan 4 18:08:45 EST 2007

Do you need to maintain invariants that span the two?  Put
operationally, do you want different threads to be able to access a
and b concurrently?


"Chad Scherrer" <chad.scherrer at gmail.com> writes:

> When using MVars, is there a reason to prefer using MVar (a,b) over
> (MVar a, MVar b), or vice versa? I'm not sure if this is really a
> question of style, or if there are practial implications I'm missing
> one way or another. Thanks!
> -- 
> Chad Scherrer
> "Time flies like an arrow; fruit flies like a banana" -- Groucho Marx
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list