Add a datatype and instance for Hackage.

Signed-off-by: Magnus Therning <magnus@therning.org>