
Data.Ref.Universal  Portability  Hugs/GHC  Stability  experimental  Maintainer  Bulat Ziganshin <Bulat.Ziganshin@gmail.com> 





Description 
Monadindependent interfaces for boxed and unboxed references


Synopsis 




Monadindependent interface for boxed references



This class allows to create new boxed reference in monadindependent way
(suitable for writing code that will work in IO, ST and other monads)
  Methods   Create a new Ref with given initial value
   Read the value of an Ref
   Write new value into an Ref

  Instances  



Modify the contents of an Ref by applying pure function to it


modifyRefM :: Ref m r => r a > (a > m a) > m ()  Source 

Modify the contents of an Ref by applying monadic computation to it


Monadindependent interface for unboxed references



This class allows to create new unboxed reference in monadindependent way
(suitable for writing code that will work in IO, ST and other monads)
  Methods   Create a new URef with given initial value
   Read the value of an URef
   Write new value into an URef

  Instances  



Modify the contents of an URef by applying pure function to it



Modify the contents of an URef by applying monadic computation to it


Produced by Haddock version 2.4.2 