Exercise solution: Pair

Exercise

Write Functor and Align instances for the following type:

data Pair a = Zero | Pair a a
  deriving Show

Solution

Sign up for access to the full page, plus the complete archive and all the latest content.