Envirnoments are layered; for example, a type environment contains a top-level environment that is used to resolve qualified names.
Table 4.1: List of environments
SML type Support module Description
Env.global_env GlobalEnv Global environment Env.top_env TopEnv Top-level environment Env.sig_env SigEnv Signature environment Env.ty_env TyEnv Type environment Env.exp_env ExpEnv Expression environment