forked from ocaml/ocaml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrortrace_report.mli
56 lines (48 loc) · 1.93 KB
/
errortrace_report.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
(**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* Florian Angeletti, projet Cambium, INRIA Paris *)
(* *)
(* Copyright 2024 Institut National de Recherche en Informatique et *)
(* en Automatique. *)
(* *)
(* All rights reserved. This file is distributed under the terms of *)
(* the GNU Lesser General Public License version 2.1, with the *)
(* special exception on linking described in the file LICENSE. *)
(* *)
(**************************************************************************)
(** Functions for reporting core level type errors. *)
open Format_doc
val ambiguous_type:
formatter -> Env.t -> (Path.t * Path.t) -> (Path.t * Path.t) list ->
Format_doc.t -> Format_doc.t -> Format_doc.t -> unit
val unification :
formatter ->
Env.t -> Errortrace.unification_error ->
?type_expected_explanation:Format_doc.t -> Format_doc.t -> Format_doc.t ->
unit
val equality :
formatter ->
Out_type.type_or_scheme ->
Env.t -> Errortrace.equality_error ->
Format_doc.t -> Format_doc.t ->
unit
val moregen :
formatter ->
Out_type.type_or_scheme ->
Env.t -> Errortrace.moregen_error ->
Format_doc.t -> Format_doc.t ->
unit
val comparison :
formatter ->
Out_type.type_or_scheme ->
Env.t -> Errortrace.comparison_error ->
Format_doc.t -> Format_doc.t ->
unit
val subtype :
formatter ->
Env.t ->
Errortrace.Subtype.error ->
string ->
unit