data-example.hs 172 B

1234
  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)