1 2 3 4 5 6 7 8 9
data Fruit = Apple | Orange deriving Show whichFruit f = case f of "apple" -> Just Apple "orange" -> Just Orange _ -> Nothing