purescript-contrib/purescript-parsing

MonadST instance for ParserT?

Opened this issue · 1 comments

https://pursuit.purescript.org/packages/purescript-st/6.0.0/docs/Control.Monad.ST.Class#v:liftST

Then we could replace doST with liftST here

-- Sequence ST operations in some other monad. What could possibly go wrong?
doST :: forall b. ST Global b -> m b
doST = pure <<< unsafePerformEffect <<< toEffect

Actually we should just use Array.reverse for all this instead of Array.ST.

https://discourse.purescript.org/t/what-nate-told-me-about-array-building/3191