This trait provides an instance of Semigroup
for an enumeration.
This trait provides an instance of Show
for an enumeration.
This trait provides an instance of Show
for an enumeration. It works
by extending the companion object of the enumeration class.
@enum class Color { Red Blue Yellow } object Color extends IsShow[Color]
This trait provides an instance of
Semigroup
for an enumeration. It works by extending the companion object of the enumeration class.