--
-- Maintainer : libraries@haskell.org
-- Stability : experimental
--- Portability : non-portable (requires non-portable module ST)
+-- Portability : non-portable (uses Control.Monad.ST.Lazy)
--
-- Mutable references in the lazy ST monad.
--
import Control.Monad.ST.Lazy
import qualified Data.STRef as ST
-import qualified Control.Monad.ST as ST
newSTRef :: a -> ST s (ST.STRef s a)
readSTRef :: ST.STRef s a -> ST s a
readSTRef = strictToLazyST . ST.readSTRef
writeSTRef r a = strictToLazyST (ST.writeSTRef r a)
modifySTRef r f = strictToLazyST (ST.modifySTRef r f)
-
-