External Publication
Visit Post

Haskell's missing mutable reference type

Haskell Community [Unofficial] June 14, 2026
Source

I see! That’s interesting. Yes, there is something ugly there. I’m not sure how to state the property that you’re aiming for here, but it seems probably desirable. It’s interesting that we’d need to strip away a bunch of the normal IORef interface to ensure it.

And indeed, we don’t have non-scoped modification functions for masking state, which is perhaps telling.

I think a non-scoped InheritedThreadLocalIORef makes sense from a machine perspective but that doesn’t mean it has good semantics! I will have more of a think about this.

Discussion in the ATmosphere

Loading comments...