Suppose I have something like this:
data Colour = Red | Blue | Green
deriving (Eq, Ord, Enum, Bounded, Read, Show)
And I want to have unboxed Vectorof Colours. I obviously cannot do this directly (because it is Colournot an instance Unbox), but I also cannot say how I will write the instance Unboxfor Colour. The documentation for Unboxdoes not seem to talk about how you are making any of this instance (or at least not as I understand it).
source
share