adversaria icon indicating copy to clipboard operation
adversaria copied to clipboard

Provide typeclass for getting all/any annotations on a class

Open propensive opened this issue 2 years ago • 0 comments

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 avatar Jan 14 '23 10:01 propensive