X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Data%2FSTRef.hs;h=10853bea34caa8a0814820391435bf6356542721;hb=26d2805a6e58822d246cf9601fb226b0861e7f65;hp=3edfb871ae33310be20c2fe330e45b6b3438ef5d;hpb=d539a9457e2c79a9f13744d073d3f253ea2fb33e;p=haskell-directory.git diff --git a/Data/STRef.hs b/Data/STRef.hs index 3edfb87..10853be 100644 --- a/Data/STRef.hs +++ b/Data/STRef.hs @@ -6,7 +6,7 @@ -- -- Maintainer : libraries@haskell.org -- Stability : experimental --- Portability : non-portable (requires non-portable module ST) +-- Portability : non-portable (uses Control.Monad.ST) -- -- Mutable references in the (strict) ST monad. -- @@ -30,12 +30,11 @@ import GHC.STRef #ifdef __HUGS__ import Hugs.ST -#endif - import Data.Typeable #include "Typeable.h" INSTANCE_TYPEABLE2(STRef,stRefTc,"STRef") +#endif -- |Mutate the contents of an 'STRef' modifySTRef :: STRef s a -> (a -> a) -> ST s ()