purescript-contrib / purescript-parsing

A parser combinator library based on Parsec
BSD 2-Clause "Simplified" License
149 stars 50 forks source link

MonadST instance for ParserT? #197

Open jamesdbrock opened 2 years ago

jamesdbrock commented 2 years ago

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

https://github.com/purescript-contrib/purescript-parsing/blob/c160c90b03cabb8fcbb676f6f10474e86328d0f6/src/Parsing/String/Replace.purs#L483-L485

jamesdbrock commented 1 year ago

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