if I have two data structures
data Tri = Tri {a :: Int, b :: Int , c :: Int} deriving Show data Quad = Quad {w :: Int, x :: Int, y :: Int, z :: Int} deriving Show how do I create another data structure made up of those two? ie something alon the lines of:
data Shape = Tri | Quad derivng Show
type Shape = Either Tri Quadmight suffice.