When to use STRef or IORef?

Viewed 3229

What exactly is the difference between STRef and IORef and when do I use each of them? As far as I can tell they both are for mutable state so whats the point of both of them existing?

2 Answers
Related