module MiniSolver: sig
.. end
This module provides a constraint solver based on unification
under a mixed prefix.
include Solver.SolverException
type
environment
The solver environment.
type
tconstraint = (Constraint.crterm, Constraint.variable) Constraint.type_constraint
The constraint to solve.
type
solving_step =
A solving_step
describes a elementary step of the solver.
val solve : ?tracer:(solving_step -> unit) ->
tconstraint -> environment
solve tracer c
solves c
by doing in-place modifications resulting
in a environment.
val environment_as_list : environment -> (string * Constraint.variable) list
environment_as_list env
converts env
into a list.
val print_env : ?use_user_def:'a ->
(Constraint.variable -> string) -> environment -> unit
print_env printer env
use the printer
of variable in order to
display env
.