@@ -527,14 +527,22 @@ Basic resolution 3, module type:
527
527
Root);
528
528
ihash = 818126955; ikey = "r_Root.p_None"},
529
529
u);
530
- ihash = 15973539;
531
- ikey = "t_u.r_Root.p_"... (* string length 17; truncated *)};
530
+ ihash = 15973539; ikey = "t_u.r_Root.p_None"};
532
531
source_loc = None;
533
532
doc = {Odoc_model__.Comment.elements = []; suppress_warnings = false};
534
533
canonical = None;
535
534
equation =
536
535
{Odoc_model.Lang.TypeDecl.Equation.params = []; private_ = false;
537
- manifest = Some (Odoc_model.Lang.TypeExpr.Constr (...));
536
+ manifest =
537
+ Some
538
+ (Odoc_model.Lang.TypeExpr.Constr
539
+ (`Resolved
540
+ (`Type
541
+ (`Identifier
542
+ {Odoc_model__Paths_types.iv = ...; ihash = ...;
543
+ ikey = ...},
544
+ ...)),
545
+ ...));
538
546
constraints = ...};
539
547
representation = ...});
540
548
...];
@@ -732,26 +740,32 @@ Basic resolution 4, module type:
732
740
({Odoc_model__Paths_types.iv =
733
741
`Module
734
742
({Odoc_model__Paths_types.iv =
735
- `Root ...; ihash = ...;
736
- ikey = ...},
737
- ...);
738
- ihash = ...; ikey = ...},
739
- ...);
740
- ihash = ...; ikey = ...},
741
- ...);
742
- ihash = ...; ikey = ...};
743
- source_loc = ...; doc = ...; canonical = ...;
744
- equation = ...; representation = ...});
745
- ...];
746
- compiled = ...; removed = ...; doc = ...});
747
- canonical = ...; hidden = ...});
748
- ...];
749
- compiled = ...; removed = ...; doc = ...});
750
- p_path = ...});
751
- canonical = ...; hidden = ...});
752
- ...];
753
- compiled = ...; removed = ...; doc = ...};
754
- expansion = ...; linked = ...; source_loc = ...; canonical = ...}
743
+ `Root
744
+ (Some
745
+ {Odoc_model__Paths_types.iv
746
+ = `Page (None, ...);
747
+ ihash = ...;
748
+ ikey = ...},
749
+ ...);
750
+ ihash = ...; ikey = ...},
751
+ ...);
752
+ ihash = ...; ikey = ...},
753
+ ...);
754
+ ihash = ...; ikey = ...},
755
+ ...);
756
+ ihash = ...; ikey = ...};
757
+ source_loc = ...; doc = ...; canonical = ...;
758
+ equation = ...; representation = ...});
759
+ ...];
760
+ compiled = ...; removed = ...; doc = ...});
761
+ canonical = ...; hidden = ...});
762
+ ...];
763
+ compiled = ...; removed = ...; doc = ...});
764
+ p_path = ...});
765
+ canonical = ...; hidden = ...});
766
+ ...];
767
+ compiled = ...; removed = ...; doc = ...};
768
+ expansion = ...; linked = ...; source_loc = ...; canonical = ...}
755
769
```
756
770
757
771
This example is rather more interesting:
@@ -974,8 +988,7 @@ and then we can look up the type `t`.
974
988
ikey = "m_B.mt_M.r_Root.p_None"},
975
989
t);
976
990
ihash = 484865120;
977
- ikey =
978
- "t_t.m_B.mt_M.r_Root.p_No"... (* string length 26; truncated *)};
991
+ ikey = "t_t.m_B.mt_M.r_Root.p_None"};
979
992
source_loc = None;
980
993
doc =
981
994
{Odoc_model__.Comment.elements = [];
@@ -991,13 +1004,21 @@ and then we can look up the type `t`.
991
1004
doc =
992
1005
{Odoc_model__.Comment.elements = [];
993
1006
suppress_warnings = false}});
994
- p_path = `Resolved (`Identifier ...)});
995
- canonical = ...; hidden = ...});
996
- ...];
997
- compiled = ...; removed = ...; doc = ...})};
998
- ...];
999
- compiled = ...; removed = ...; doc = ...};
1000
- expansion = ...; linked = ...; source_loc = ...; canonical = ...}
1007
+ p_path =
1008
+ `Resolved
1009
+ (`Identifier
1010
+ {Odoc_model__Paths_types.iv =
1011
+ `ModuleType
1012
+ ({Odoc_model__Paths_types.iv = ...;
1013
+ ihash = ...; ikey = ...},
1014
+ ...);
1015
+ ihash = ...; ikey = ...})});
1016
+ canonical = ...; hidden = ...});
1017
+ ...];
1018
+ compiled = ...; removed = ...; doc = ...})};
1019
+ ...];
1020
+ compiled = ...; removed = ...; doc = ...};
1021
+ expansion = ...; linked = ...; source_loc = ...; canonical = ...}
1001
1022
```
1002
1023
1003
1024
``` ocaml
@@ -1188,7 +1209,17 @@ and then we can look up the type `t`.
1188
1209
{Odoc_model__Paths_types.iv =
1189
1210
`Type
1190
1211
({Odoc_model__Paths_types.iv =
1191
- `Module (...);
1212
+ `Module
1213
+ ({Odoc_model__Paths_types.iv
1214
+ =
1215
+ `Module
1216
+ ({Odoc_model__Paths_types.iv
1217
+ = ...;
1218
+ ihash = ...;
1219
+ ikey = ...},
1220
+ ...);
1221
+ ihash = ...; ikey = ...},
1222
+ ...);
1192
1223
ihash = ...; ikey = ...},
1193
1224
...);
1194
1225
ihash = ...; ikey = ...};
@@ -1388,11 +1419,13 @@ Ensure a substitution is taken into account during resolution:
1388
1419
(Some
1389
1420
{Odoc_model__Paths_types.iv = `Page (None, None);
1390
1421
ihash = 236059787; ikey = "p_None"},
1391
- ...);
1392
- ihash = ...; ikey = ...},
1393
- ...);
1394
- ihash = ...; ikey = ...};
1395
- source_loc = ...; doc = ...; type_ = ...; canonical = ...;
1422
+ Root);
1423
+ ihash = 818126955;
1424
+ ikey = "r_Root.p"... (* string length 13; truncated *)},
1425
+ B);
1426
+ ihash = 814134997;
1427
+ ikey = "m_B.r_Ro"... (* string length 17; truncated *)};
1428
+ source_loc = None; doc = ...; type_ = ...; canonical = ...;
1396
1429
hidden = ...});
1397
1430
...];
1398
1431
compiled = ...; removed = ...; doc = ...};
@@ -1578,11 +1611,13 @@ Ensure a destructive substitution is taken into account during resolution:
1578
1611
(Some
1579
1612
{Odoc_model__Paths_types.iv = `Page (None, None);
1580
1613
ihash = 236059787; ikey = "p_None"},
1581
- ...);
1582
- ihash = ...; ikey = ...},
1583
- ...);
1584
- ihash = ...; ikey = ...};
1585
- source_loc = ...; doc = ...; type_ = ...; canonical = ...;
1614
+ Root);
1615
+ ihash = 818126955;
1616
+ ikey = "r_Root.p"... (* string length 13; truncated *)},
1617
+ B);
1618
+ ihash = 814134997;
1619
+ ikey = "m_B.r_Ro"... (* string length 17; truncated *)};
1620
+ source_loc = None; doc = ...; type_ = ...; canonical = ...;
1586
1621
hidden = ...});
1587
1622
...];
1588
1623
compiled = ...; removed = ...; doc = ...};
@@ -1743,10 +1778,14 @@ Resolve a module alias:
1743
1778
`Page (None, None);
1744
1779
ihash = 236059787; ikey = "p_None"},
1745
1780
Root);
1746
- ihash = ...; ikey = ...},
1747
- ...);
1748
- ihash = ...; ikey = ...},
1749
- ...)),
1781
+ ihash = 818126955;
1782
+ ikey =
1783
+ "r_Root.p"... (* string length 13; truncated *)},
1784
+ B);
1785
+ ihash = 814134997;
1786
+ ikey =
1787
+ "m_B.r_Ro"... (* string length 17; truncated *)},
1788
+ false)),
1750
1789
...)),
1751
1790
...));
1752
1791
constraints = ...};
@@ -1908,13 +1947,16 @@ Resolve a module alias:
1908
1947
Root);
1909
1948
ihash = 818126955;
1910
1949
ikey =
1911
- "r_Root.p "... (* string length 13; truncated *)},
1950
+ "r_Root.p_No "... (* string length 13; truncated *)},
1912
1951
B);
1913
1952
ihash = 814134997;
1914
1953
ikey = "m_B.r_Ro"... (* string length 17; truncated *)},
1915
1954
false))),
1916
1955
None);
1917
- canonical = ...; hidden = ...});
1956
+ canonical = None; hidden = false});
1957
+ Odoc_model.Lang.Signature.Type (Odoc_model.Lang.Signature.Ordinary,
1958
+ {Odoc_model.Lang.TypeDecl.id = ...; source_loc = ...; doc = ...;
1959
+ canonical = ...; equation = ...; representation = ...});
1918
1960
...];
1919
1961
compiled = ...; removed = ...; doc = ...};
1920
1962
expansion = ...; linked = ...; source_loc = ...; canonical = ...}
@@ -2097,10 +2139,17 @@ Resolve a functor:
2097
2139
Root);
2098
2140
ihash = 818126955;
2099
2141
ikey =
2100
- "r_Root.p "... (* string length 13; truncated *)},
2142
+ "r_Root.p_ "... (* string length 13; truncated *)},
2101
2143
S);
2102
- ihash = 527535255; ikey = ...})}},
2103
- ...));
2144
+ ihash = 527535255;
2145
+ ikey =
2146
+ "mt_S.r_R"... (* string length 18; truncated *)})}},
2147
+ Odoc_model.Lang.ModuleType.Functor
2148
+ (Odoc_model.Lang.FunctorParameter.Named
2149
+ {Odoc_model.Lang.FunctorParameter.id =
2150
+ {Odoc_model__Paths_types.iv = ...; ihash = ...; ikey = ...};
2151
+ expr = ...},
2152
+ ...)));
2104
2153
canonical = ...; hidden = ...});
2105
2154
...];
2106
2155
compiled = ...; removed = ...; doc = ...};
@@ -2307,10 +2356,18 @@ Resolve a functor:
2307
2356
Root);
2308
2357
ihash = 818126955;
2309
2358
ikey =
2310
- "r_Root.p "... (* string length 13; truncated *)},
2359
+ "r_Root.p_ "... (* string length 13; truncated *)},
2311
2360
S);
2312
- ihash = 527535255; ikey = ...})}},
2313
- ...))};
2361
+ ihash = 527535255;
2362
+ ikey =
2363
+ "mt_S.r_R"... (* string length 18; truncated *)})}},
2364
+ Odoc_model.Lang.ModuleType.Path
2365
+ {Odoc_model.Lang.ModuleType.p_expansion =
2366
+ Some
2367
+ (Odoc_model.Lang.ModuleType.Signature
2368
+ {Odoc_model.Lang.Signature.items = [...]; compiled = ...;
2369
+ removed = ...; doc = ...});
2370
+ p_path = ...}))};
2314
2371
...];
2315
2372
compiled = ...; removed = ...; doc = ...};
2316
2373
expansion = ...; linked = ...; source_loc = ...; canonical = ...}
@@ -2524,14 +2581,17 @@ Functor app nightmare:
2524
2581
Type);
2525
2582
ihash = 359972898;
2526
2583
ikey =
2527
- "mt_Type.r_R "... (* string length 21; truncated *)})}},
2584
+ "mt_Type.r_Root.p_N "... (* string length 21; truncated *)})}},
2528
2585
Odoc_model.Lang.ModuleType.Functor
2529
2586
(Odoc_model.Lang.FunctorParameter.Named
2530
2587
{Odoc_model.Lang.FunctorParameter.id =
2531
2588
{Odoc_model__Paths_types.iv =
2532
2589
`Parameter
2533
- ({Odoc_model__Paths_types.iv = ...; ihash = ...;
2534
- ikey = ...},
2590
+ ({Odoc_model__Paths_types.iv =
2591
+ `Result
2592
+ {Odoc_model__Paths_types.iv = `Module (...);
2593
+ ihash = ...; ikey = ...};
2594
+ ihash = ...; ikey = ...},
2535
2595
...);
2536
2596
ihash = ...; ikey = ...};
2537
2597
expr = ...},
0 commit comments