Closed
Description
If this library adds a named region:
foreign import data Global :: *
Then you can use st :: ST Global
as the effect of global mutations. For example:
main :: forall eff. Eff (st :: ST Global | eff) Unit
main = ...
Which would eliminate the need for REF
. You could use existing local ST computations (forall r e. Eff (st :: ST r | e)
) without runST
if you already have an st :: ST Global
effect, so I think there would be no issue with duplicate labels.
Metadata
Metadata
Assignees
Labels
No labels