Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding some tags to the tags feature #84

Merged
merged 12 commits into from
Jan 22, 2024
Merged

Adding some tags to the tags feature #84

merged 12 commits into from
Jan 22, 2024

Conversation

jiegillet
Copy link
Contributor

Part of #83

It's been a while :)
I had a bit of time, so I went through the list of missing tags and added a couple, some very basic ones, some a bit more fun.

@jiegillet jiegillet requested a review from a team as a code owner January 20, 2024 10:10
@@ -118,18 +132,65 @@ dataExtractor =
.tags >> Set.toList >> Encode.list Encode.string


declarationVisitor : Node Declaration -> ModuleContext -> ( List never, ModuleContext )
declarationVisitor node ({ tags } as context) =
moduleDefinitionVisitor : Node Module -> ModuleContext -> ( List never, ModuleContext )
Copy link
Contributor

Choose a reason for hiding this comment

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

What are all the List Never for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's kind of required, because I only output empty lists. But looking it from the other way, it signals from the type signature that those list must be empty, since you cannot create a generic type out of nowhere (I called it never, but it could have been anything, void is another nice one).

Copy link
Contributor

Choose a reason for hiding this comment

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

I take it the elm review api requires you return the List something? never seems like a good choice for the name, it matches the Never type.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

At first I read your sentence as "it never seems like a good choice for the name" hahaha :D

I think I tried using Never before, but I vaguely remember it didn't work? I'll try again and clarify.

Copy link
Member

@ErikSchierboom ErikSchierboom left a comment

Choose a reason for hiding this comment

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

Nice work!

@jiegillet jiegillet merged commit c8d7461 into main Jan 22, 2024
4 checks passed
@jiegillet jiegillet deleted the jie-tags branch January 22, 2024 08:35
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.

3 participants