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

2009-11-24 Thread zaxis

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@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2009-11-24 Thread Ross Mellgren

Control.Concurrent.STM

On Nov 24, 2009, at 6:11 PM, zaxis 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@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2009-11-24 Thread Ben Millwood
On Tue, Nov 24, 2009 at 11:11 PM, zaxis z_a...@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@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.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2009-11-24 Thread zaxis

thanks! Maybe the hoogle shoud add it


Ross Mellgren wrote:
 
 Control.Concurrent.STM
 
 On Nov 24, 2009, at 6:11 PM, zaxis 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@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe
 
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe
 
 


-
fac n = foldr (*) 1 [1..n]
-- 
View this message in context: 
http://old.nabble.com/Where-is-%60newTVarIO%60-defined---tp26504967p26505553.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe