Skip to content
  • simonmar's avatar
    b07c839a
    [project @ 2005-12-05 11:42:47 by simonmar] · b07c839a
    simonmar authored
    Add IO versions of the STM primitives that allocate new transactional variables:
    
      newTVarIO :: a -> IO (TVar a)
      newTChanIO :: IO (TChan a)
      newTMVarIO :: a -> IO (TMVar a)
    
    These can be used inside unsafePerformIO, unlike the STM versions.
    b07c839a
    [project @ 2005-12-05 11:42:47 by simonmar]
    simonmar authored
    Add IO versions of the STM primitives that allocate new transactional variables:
    
      newTVarIO :: a -> IO (TVar a)
      newTChanIO :: IO (TChan a)
      newTMVarIO :: a -> IO (TMVar a)
    
    These can be used inside unsafePerformIO, unlike the STM versions.
Loading