purescript / purescript-st

The ST effect, for safe local mutation
BSD 3-Clause "New" or "Revised" License
25 stars 25 forks source link

Implement ST using Ref #4

Closed texastoland closed 6 years ago

texastoland commented 8 years ago

Continued from Twitter.

paf31 commented 8 years ago

đź‘Ť Makes sense, as long as we hide the appropriate constructors. This should allow us to cast a STRef to a regular Ref, or an ST action to a REF action (but not the other way around).

texastoland commented 8 years ago

This should allow us to cast…

Yeah this is working awesome!

garyb commented 6 years ago

Closing this as Ref is in Effect and ST is its own thing now.