Module Jkind.Violation
type violation = | Not_a_subjkind : (Allowance.allowed * 'r1) Types.jkind * ('l * 'r2) Types.jkind * Jkind.Sub_failure_reason.t list -> Jkind.Violation.violation| No_intersection : 'd Types.jkind * ('l * Allowance.allowed) Types.jkind -> Jkind.Violation.violation
Set ?missing_cmi to mark t as having arisen from a missing cmi
val of_ :
context:Jkind.jkind_context ->
?missing_cmi:Path.t ->
Jkind.Violation.violation ->
Jkind.Violation.tval is_missing_cmi : Jkind.Violation.t -> boolIs this error from a missing cmi?
val report_with_offender :
offender:(Stdlib.Format.formatter -> unit) ->
level:int ->
Stdlib.Format.formatter ->
Jkind.Violation.t ->
unitPrints a violation and the thing that had an unexpected jkind (offender, which you supply an arbitrary printer for).
val report_with_offender_sort :
offender:(Stdlib.Format.formatter -> unit) ->
level:int ->
Stdlib.Format.formatter ->
Jkind.Violation.t ->
unitLike report_with_offender, but additionally prints that the issue is that a representable jkind was expected.
val report_with_name :
name:string ->
level:int ->
Stdlib.Format.formatter ->
Jkind.Violation.t ->
unitSimpler version of report_with_offender for when the thing that had an unexpected jkind is available as a string.