[Haskell-cafe] Where is `newTVarIO` defined ?

Ben Millwood haskell at benmachine.co.uk
Tue Nov 24 18:38:59 EST 2009


On Tue, Nov 24, 2009 at 11:11 PM, zaxis <z_axis at 163.com> wrote:
>
> I cannot hoogle it. It appears in Pugs:
>
> run' ("-d":rest)                 = do
>    info <- fmap Just (io $ newTVarIO Map.empty)
>    let ?debugInfo = info
>    run' rest
>
> Sincerely!
>
> -----
> fac n = foldr (*) 1 [1..n]
> --
> View this message in context: http://old.nabble.com/Where-is-%60newTVarIO%60-defined---tp26504967p26504967.html
> Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>

http://hackage.haskell.org/packages/archive/stm/latest/doc/html/Control-Concurrent-STM-TVar.html
The docs for it are in GHC.Conc but you probably wouldn't import it from there.


More information about the Haskell-Cafe mailing list