This repository was archived by the owner on Aug 3, 2024. It is now read-only.
This repository was archived by the owner on Aug 3, 2024. It is now read-only.
Instance since forever #1274
Open
Description
There's a special case where a @since
annotation on an instance can be just as annoying as it is helpful: when the instance has existed for as long as the youngest type in its instance head. In this case, a developer looking to use the instance may see the @since
annotation and waste time checking that their Cabal bounds are tight enough, when in fact they already did everything necessary when they checked the bounds for the types. I'd like to be able to write
-- | @since forever
instance Num a => Monoid (Sum a)