Hi - I'm looking at the Parser/Core.roc source in roc examples and see the following:
Parser input a := input -> ParseResult input a
buildPrimitiveParser : (input -> ParseResult input a) -> Parser input a
buildPrimitiveParser = \fun ->
@Parser fun
am confused as to what is the significance/meaning of the :=
in the definition of Parser as well as the @
in the body of the buildPrimativeParser function. I can't find either mentioned in the tutorial or any other doc, so if it is explained somewhere that would be great to know too. Thanks
Ahh I believe that is the opaque type syntax. There is some info in this doc -> https://github.com/roc-lang/roc/blob/main/roc-for-elm-programmers.md#opaque-types
Fantastic - thank you :)
no problem! :)
Last updated: Jul 06 2025 at 12:14 UTC