[contrib] create a Lattice type with all the known type