Skip to content

Commit 478b7ce

Browse files
KakaduDmitrii.Kosarev a.k.a. Kakadu
authored and
Dmitrii.Kosarev a.k.a. Kakadu
committed
chore: More aliases in Std.Option and Std.List
Signed-off-by: Dmitrii Kosarev <[email protected]>
1 parent de3c4b1 commit 478b7ce

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/std/List.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ let reify_list = reify
9494
let list_reify = reify
9595
let prj_exn_list = prj_exn
9696
let list_prj_exn = prj_exn
97+
let ground_prj_exn = prj_exn
9798

9899
(* let rec prj : (int -> _ ground) -> ('a, 'b) Reifier.t -> ('a groundi, 'b ground) Reifier.t =
99100
fun onvar ra ->

src/std/List.mli

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ val prj_exn : ('a, 'b) Reifier.t -> ('a injected, 'b ground) Reifier.t
102102
(** [list_prj_exn] is a synonym for [prj_exn] *)
103103
val list_prj_exn : ('a, 'b) Reifier.t -> ('a injected, 'b ground) Reifier.t
104104

105+
val ground_prj_exn : ('a, 'b) Reifier.t -> ('a injected, 'b ground) Reifier.t
106+
105107
(** Synonyms to comply with the generic naming scheme *)
106108
val reify_list : ('a, 'b) Reifier.t -> ('a injected, 'b logic) Reifier.t
107109

src/std/Option.mli

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ open Core
3333
(** Logic option *)
3434
@type 'a logic = 'a GT.option Logic.logic with show, gmap, html, eq, compare, foldl, foldr, fmt
3535

36-
(** Type synonyms to comply with the generic naming scheme *)
36+
(** Type synonyms to comply with the generic naming scheme *)
3737
@type 'a option = 'a ground with show, gmap, html, eq, compare, foldl, foldr, fmt
3838
@type 'a option_logic = 'a logic with show, gmap, html, eq, compare, foldl, foldr, fmt
39-
39+
4040
(** {2 Relational API} *)
4141

4242
(** Logic injection (for reification) *)
@@ -58,10 +58,10 @@ val reify : ('a, 'b) Reifier.t -> ('a injected, 'b logic) Reifier.t
5858
(* Shallow non-variable projection *)
5959
val prj_exn : ('a, 'b) Reifier.t -> ('a injected, 'b ground) Reifier.t
6060

61-
(** Synonyms to comply with the generic naming scheme *)
61+
(** Synonyms to comply with the generic naming scheme *)
6262
val reify_option : ('a, 'b) Reifier.t -> ('a injected, 'b logic) Reifier.t
6363
val prj_exn_option : ('a, 'b) Reifier.t -> ('a injected, 'b ground) Reifier.t
64-
64+
6565
(** {3 Constructors} *)
6666

6767
(** Logic dual of constructor [Some] from {!Stdlib.Option}. *)

0 commit comments

Comments
 (0)