Created
June 24, 2024 16:01
-
-
Save chrisdone-artificial/0ef6037223ff9894c8e795cac366aa31 to your computer and use it in GitHub Desktop.
megaparsec works
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ghci> runReader (runParserT (do a <- local (+1) ask; b <- ask; pure (a,b)) "" "") 0 | |
Right (1,0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment