1 -----------------------------------------------------------------------------
4 -- Copyright : (c) The University of Glasgow 2001
5 -- License : BSD-style (see the file libraries/core/LICENSE)
7 -- Maintainer : libraries@haskell.org
8 -- Stability : experimental
9 -- Portability : non-portable (requires non-portable module ST)
11 -- $Id: STRef.hs,v 1.2 2001/07/03 11:37:50 simonmar Exp $
13 -- Mutable references in the ST monad.
15 -----------------------------------------------------------------------------
18 STRef, -- abstract, instance Eq
19 newSTRef, -- :: a -> ST s (STRef s a)
20 readSTRef, -- :: STRef s a -> ST s a
21 writeSTRef -- :: STRef s a -> a -> ST s ()
26 #ifdef __GLASGOW_HASKELL__
33 INSTANCE_TYPEABLE2(STRef,stRefTc,"STRef")