Skip to content

Add comment about JSONPath accumulated in reverse in Parser#1185

Merged
Lysxia merged 1 commit into
haskell:masterfrom
phadej:parser-jsonpath-reverse-comment
Jul 9, 2026
Merged

Add comment about JSONPath accumulated in reverse in Parser#1185
Lysxia merged 1 commit into
haskell:masterfrom
phadej:parser-jsonpath-reverse-comment

Conversation

@phadej

@phadej phadej commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

I was wondering how this works. it took a while to find where reverse happens.

It might be good idea to define newtype ReversedJSONPath = ReversesJSONPath JSONPath, and use that in Parser. That way the reverse would be harder to forget, but such change might be breaking, i'm not sure how much of internals is exposed.

@Lysxia Lysxia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Lysxia Lysxia merged commit b49d71b into haskell:master Jul 9, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants