Just wanted to let everyone know that I just updated the documentation for roc-parser.
Thank you for the feedback from AoC, I really appreciate it.
If anyone finds anything that could be improved, please raise an issue.
Wow. I did not know this documentation existed. Maybe you could add a link to the readme on https://github.com/lukewilliamboswell/roc-parser
I tried to include examples for most of the usual suspects. You should be able to copy-paste the examples and they will work.
We have discussed previously a design for enabling expectations in doc comments to be actually tests, but that isn't implemented yet. So these are included as tests in the String
module.
@Oskar Hahn thats great feedback, will do
I've been loving this library. I was just using it this morning for the Advent of Code. The examples in the documentation has helped a lot to use the library. I'm having trouble with the final composition of the parser, but I'll check if someone else has encountered a similar problem before opening a thread.
New release of roc-parser 0.4.0, primarily to update for changes with string interpolation.
Documentation is great, and the keep and skip functions are very well named. I used to write parsers in haskell and until today I thought I would forever miss the <$>, <$ and $> operators, but now I think those operators are needlessly confusing and esoteric notation. It's also lovely that the examples I've seen are done without using <- Very well thought out. Very well done. :+1:
Glad to hear your enjoying using it. The skip and keep idea came from @Richard Feldman and I love it too!
Last updated: Jul 26 2025 at 12:14 UTC