purescript-st icon indicating copy to clipboard operation
purescript-st copied to clipboard

The ST effect, for safe local mutation

Results 4 purescript-st issues
Sort by recently updated
recently updated
newest added

I came across [State in Haskell](https://www.microsoft.com/en-us/research/wp-content/uploads/2016/07/state-lasc.pdf) where I believe `ST` was first introduced. Perhaps we should link to that paper in the docs?

This is a idea for the future, floated by @natefaubion when we were talking about #30. `ST` and `Effect` have the same implementation, and it should be possible to coerce...

type: breaking change
purs-0.15

Originally reported [here](https://github.com/purescript-contrib/purescript-book/pull/94#discussion_r415118418). There's an unexpected call to `Control_Monad_ST_Internal.modify` in the JS output of the following function: ```hs simulate :: Number -> Number -> Int -> Number simulate x0 v0...

type: breaking change
purs-0.15

Now there's the `Global` region, `MonadST`, etc. we can do away with having two `Ref` types: - Rework `Ref` in `purescript-refs` to include `Region` (basically, `STRef` -> `Ref`) - Introduce...

type: breaking change
purs-0.15