newTVar package:concurrency

Create a new TVar containing the given value.
newTVar = newTVarN ""
Create a new TVar containing the given value, but it is given a name which may be used to present more useful debugging information. If an empty name is given, a counter starting from 0 is used. If names conflict, successive TVars with the same name are given a numeric suffix, counting up from 1.
newTVarN _ = newTVar
Create a TVar. This may be implemented differently for speed.
newTVarConc = atomically . newTVar