I got the following data type:
data Icon = IconCircle | IconSquare | IconStar
I need an array of all possible Icons?:
allPossible :: Array Icon
allPossible = [IconCircle, IconSquare, IconStar]
Is there a shortcut to create this array? e.g when there are 20 (or a lot more) possible Icons?
When not:
Is it possible to create a type for allPossible that forces all possible Icons to be included?
My goal is to force that this array is never incomplete.