-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheffect.mli
More file actions
43 lines (29 loc) · 1.21 KB
/
Copy patheffect.mli
File metadata and controls
43 lines (29 loc) · 1.21 KB
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
(* SPDX-License-Identifier: PMPL-1.0-or-later *)
(* SPDX-FileCopyrightText: 2024-2025 hyperpolymath *)
(** Effect system operations *)
open Types
(** Combine two effects into a union *)
val union_eff : eff -> eff -> eff
(** Union a list of effects *)
val union_effs : eff list -> eff
(** Check if an effect is pure *)
val is_pure : eff -> bool
(** Effect subtyping: e1 <: e2 means e1 can be used where e2 is expected
Pure is a subtype of any effect *)
val eff_subsumes : eff -> eff -> bool
(** Check if effect e1 is a subset of e2 *)
val eff_subset : eff -> eff -> bool
(** Normalize an effect (flatten unions, remove duplicates, sort) *)
val normalize_eff : eff -> eff
(** Pretty print effect *)
val string_of_eff : eff -> string
(** {1 Effect-row v1 canonical registry (issue #59)} *)
(** Canonical v1 effect names. *)
val v1_effects : string list
(** Reserved-for-v1.x effect names. *)
val reserved_effects : string list
(** Legacy lowercase stdlib effect → canonical v1 name. *)
val legacy_aliases : (string * string) list
(** Canonical registry name for a source effect name, or [None] if
unknown to the registry (caller also accepts declared effects). *)
val canonical_effect_name : string -> string option