purescript-contrib / purescript-parsing

A parser combinator library based on Parsec
https://pursuit.purescript.org/packages/purescript-parsing
BSD 2-Clause "Simplified" License
150 stars 52 forks source link

Change MonadState instance #187

Closed jamesdbrock closed 2 years ago

jamesdbrock commented 2 years ago

state refers to base monad instead of ParseState

Resolves #56

With this PR, users who stack a ParserT on a StateT base monad will call the MonadState members directly like get instead of needing to do lift <<< get.

To get the ParserT internal state, call getParserT instead of get.


Checklist: