Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MonadST instance for ParserT? #197

Open
jamesdbrock opened this issue May 22, 2022 · 1 comment
Open

MonadST instance for ParserT? #197

jamesdbrock opened this issue May 22, 2022 · 1 comment

Comments

@jamesdbrock
Copy link
Member

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

@jamesdbrock
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant