mirror of
https://github.com/mrkkrp/megaparsec.git
synced 2024-12-18 22:01:41 +03:00
fce6c3187c
Close # 27. Backtracking user state can be achieved via combination of ‘StateT’ monad transformer and ‘ParsecT’: StateT StateType (ParsecT s m a) This user state can be more flexible. This fact renders current built-in user state redundant. To help work with this new approach (combining monad transformers more freely) we introduce ‘MonadParsec’ MTL-style type class. All tools that come with Megaparsec library were modified to work smoothly with any instance of ‘MonadParsec’, not only ‘ParsecT’. |
||
---|---|---|
.. | ||
Lazy.hs |