How do you define the storable vector instance for a data type like below (composed from GHC primitive types):
data Atoms = I GHC.Int.Int32|S GHC.Int.Int16 -- define a union data type
I checked this storable tutorial but it works only for vectors of same types, not union like above.