data-example.hs 203 B

12345
  1. data Bool = False | True
  2. data Color = Red | Green | Blue | Indigo | Violet
  3. data Tree a = Leaf a | Branch (Tree a) (Tree a)
  4. data Point = Point Float Float deriving (Show)
  5. data Tree t = Node t [Tree t]