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

Provide typeclass for getting all/any annotations on a class #6

Open
propensive opened this issue Jan 14, 2023 · 0 comments
Open

Provide typeclass for getting all/any annotations on a class #6

propensive opened this issue Jan 14, 2023 · 0 comments
Assignees
Labels
api Relates to the API design beginner A good introduction for newcomers core Describes core required functionality enhancement An improvement to existing functionality

Comments

@propensive
Copy link
Owner

propensive commented Jan 14, 2023

Currently the Annotations typeclass is only generated if at least one, specified annotation type is found. This should be split into variants which always match (returning an empty list of annotations if there are none) and which match only when a unique annotation is found, returning just the first annotation. The two can be combined to get "at least one" behavior.

@propensive propensive added enhancement An improvement to existing functionality beginner A good introduction for newcomers api Relates to the API design core Describes core required functionality labels Jan 14, 2023
@propensive propensive added this to the Primevère milestone Jan 14, 2023
@propensive propensive self-assigned this Jan 14, 2023
@propensive propensive changed the title Provide typeclass for getting annotation on class Provide typeclass for getting all/any annotations on a class Jan 15, 2023
@propensive propensive removed this from the Primevère milestone Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Relates to the API design beginner A good introduction for newcomers core Describes core required functionality enhancement An improvement to existing functionality
Projects
Status: Todo
Development

No branches or pull requests

1 participant