module Interfaces:sig..end
val import_interface : TypeCore.env -> Module.name -> SurfaceSyntax.interface -> TypeCore.envimport_interface env mname iface, which will import the surface syntax
interface iface, belonging to module mname, into env. Obtaining the
surface syntax interface is the job of the driver.
This will perform several tasks. First, value definitions and data type
definitions will be bound in env. Second, the inner kind-checking
environment of env will be extended with bindings of the form "mname::x" to
stand for the variables "x" exported by module "mname".
val check : TypeCore.env -> SurfaceSyntax.interface -> TypeCore.envcheck env iface. We expect env to be in a specific form, which is
attained by Driver after a call to type_check: the kinding environment of
env must contain non-local, non-qualified names that represent the names
exported by the implementation.