X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Data%2FSTRef%2FLazy.hs;h=288343ee4c3149860a44183e5e786982a23192a5;hb=763b8e7a9d5c6c6427a943fc942debb61f07ff53;hp=79a65299cea5f1e54b1764e5ca28be9da0f02932;hpb=2570f264ed329f04017d507250494eb0ab680d64;p=ghc-base.git diff --git a/Data/STRef/Lazy.hs b/Data/STRef/Lazy.hs index 79a6529..288343e 100644 --- a/Data/STRef/Lazy.hs +++ b/Data/STRef/Lazy.hs @@ -12,16 +12,17 @@ -- ----------------------------------------------------------------------------- module Data.STRef.Lazy ( - -- * STRefs - ST.STRef, -- abstract, instance Eq - newSTRef, -- :: a -> ST s (STRef s a) - readSTRef, -- :: STRef s a -> ST s a - writeSTRef, -- :: STRef s a -> a -> ST s () - modifySTRef -- :: STRef s a -> (a -> a) -> ST s () + -- * STRefs + ST.STRef, -- abstract, instance Eq + newSTRef, -- :: a -> ST s (STRef s a) + readSTRef, -- :: STRef s a -> ST s a + writeSTRef, -- :: STRef s a -> a -> ST s () + modifySTRef -- :: STRef s a -> (a -> a) -> ST s () ) where import Control.Monad.ST.Lazy import qualified Data.STRef as ST +import Prelude newSTRef :: a -> ST s (ST.STRef s a) readSTRef :: ST.STRef s a -> ST s a