a value of type STRef s a
is a mutable variable in state thread s
, containing a value of type a
Instances
Typeable2 STRef Eq (STRef s a)newSTRef :: a -> ST s (STRef s a)Source
Build a new STRef
in the current state thread
readSTRef :: STRef s a -> ST s aSource
Read the value of an STRef
writeSTRef :: STRef s a -> a -> ST s ()Source
Write a new value into an STRef
modifySTRef :: STRef s a -> (a -> a) -> ST s ()Source
Mutate the contents of an STRef
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4