haskell: add lattices package

Haskell classes representing mathematical concepts like "SemiJoinLattice".  A dependency of the forthcoming "LVish" parallel programming package.