Added custom eq typeclass to types.