@@ -13,7 +13,7 @@ type myty =
13
13
myty_pretty_right ;
14
14
Mkmyty_pretty0 ;
15
15
Mkmyty_pretty1
16
- ] ( entry " _pretty " (` %myty ))
16
+ ] ( entry " myty_pretty " (` %myty ))
17
17
18
18
(* Sanity check *)
19
19
let right ( x : myty ) : r : myty_pretty { myty_pretty_right x == r } =
@@ -37,7 +37,7 @@ type named_ty =
37
37
Mknamed_ty_pretty_Case1 ;
38
38
Mknamed_ty_pretty_Case2 ;
39
39
// named_ty_pretty_bij; // bijection record disabled for now
40
- ] ( entry " _pretty " (` %named_ty ))
40
+ ] ( entry " named_ty_pretty " (` %named_ty ))
41
41
42
42
// test bijection
43
43
@@ -75,7 +75,7 @@ type named_ty2 =
75
75
named_ty2_pretty ;
76
76
Mknamed_ty2_pretty_Case1 ;
77
77
Mknamed_ty2_pretty_Case2 ;
78
- ] ( entry " _pretty " (` %named_ty2 ))
78
+ ] ( entry " named_ty2_pretty " (` %named_ty2 ))
79
79
80
80
let test_named_ty2 ( i : named_ty2_pretty ) =
81
81
match i with
@@ -84,13 +84,13 @@ let test_named_ty2 (i : named_ty2_pretty) =
84
84
()
85
85
86
86
type t2 = tuple2 int int
87
- %splice [ t2_pretty ] ( entry " _pretty " (` %t2 ))
87
+ %splice [ t2_pretty ] ( entry " t2_pretty " (` %t2 ))
88
88
89
89
type t3 = tuple2 int ( either bool string)
90
- %splice [ t3_pretty ] ( entry " _pretty " (` %t3 ))
90
+ %splice [ t3_pretty ] ( entry " t3_pretty " (` %t3 ))
91
91
92
92
type t4 = either t3 ( tuple2 int ( either bool string))
93
- %splice [ t4_pretty ; t4_pretty_left_right ] ( entry " _pretty " (` %t4 ))
93
+ %splice [ t4_pretty ; t4_pretty_left_right ] ( entry " t4_pretty " (` %t4 ))
94
94
95
95
let inv ( x : t4 ) = t4_pretty_left_right x
96
96
@@ -103,7 +103,7 @@ type t5 =
103
103
noextract
104
104
noeq (* will only go to the generated type. *)
105
105
unfold
106
- %splice [ t5_quals ; t5_quals_left_right ] ( entry " _quals " (` %t5 ))
106
+ %splice [ t5_quals ; t5_quals_left_right ] ( entry " t5_quals " (` %t5 ))
107
107
108
108
type big =
109
109
either int <|
@@ -150,4 +150,6 @@ type bigger =
150
150
) bool
151
151
152
152
[ @@no_auto_projectors ] // makes it a bit faster
153
- %splice [] ( entry " _pretty" (` %bigger ))
153
+ %splice [ huger ] ( entry " huger" (` %bigger ))
154
+
155
+ let _ = huger
0 commit comments