Following up from yesterday’s post:
Haskell's missing mutable reference type Links
Whilst looking at the Scoped thread-locals GHC proposal I realised that Haskell is missing a mutable reference type that some other languges have (and people have tried to encode in Haskell), so I wrote it up: haskells-missing-mutable-ref
Today I show a reference implementation for IOScopedRef:
- A reference implementation of IOScopedRef