These should be safe, read-only operations. Is wrapping the result in `Eff` necessary?
Activity
Remove effect from Getter
jacereda commentedon Oct 29, 2017
I'm not sure about this. Could the compiler, in a case like this:
be free to reorder the getters in a way that yields unexpected results for that code?
matthewleon commentedon Oct 30, 2017
Ah I see. I think the issue here might be that what these
Effs are doing isSTtype stuff.I'm working on a fork of this where I adopt the approach used here: https://pursuit.purescript.org/packages/purescript-arrays/4.0.1/docs/Data.Array.ST
I think that might be fruitful.
jacereda commentedon Oct 30, 2017
Great,
freeze/thawseems the way to go.matthewleon commentedon Nov 13, 2017
Implementing the
STapproach here: https://github.com/matthewleon/purescript-arraybuffer-safe