Add an interface for primitives.ml.