a value of type STRef s a is a mutable variable in state thread s,
containing a value of type a
:{runST (do ref <- newSTRef "hello" x <- readSTRef ref writeSTRef ref (x ++ "world") readSTRef ref ):}"helloworld"
Instances4NFData2, NFData1, Eq, NFData
NFData2 STRefDefined in deepseq-1.5.0.0 · Control.DeepSeqNFData1 (STRef s)Defined in deepseq-1.5.0.0 · Control.DeepSeqEq (STRef s a)Defined in ghc-internal-9.1003.0 · GHC.Internal.STRefPointer equality.
NFData (STRef s a)Defined in deepseq-1.5.0.0 · Control.DeepSeqNOTE: Only strict in the reference and not the referenced value.