@@ -5,12 +5,6 @@ The module Test_x is expected to be referenced as Test.X.
55Test_w is similar but defined as a . ml file.
66
77 $ compile test_x. mli test_w. ml test. ml
8- File " test_x.mli" , line 13 , characters 6 -26:
9- Unexpected tag ' @canonical' at this location.
10- File " test_w.ml" , line 13 , characters 6 -26:
11- Unexpected tag ' @canonical' at this location.
12- File " test.ml" , line 18 , characters 6 -24:
13- Unexpected tag ' @canonical' at this location.
148
159Test_x has a ' canonical' field:
1610
@@ -22,14 +16,14 @@ The first two type declarations should have resolved canonical constructors, the
2216 $ odoc_print test. odocl | jq -c " .content.Module.items | .[] | .Type[1] | select(.) | .equation.manifest.Some.Constr"
2317 [{" `Resolved" : {" `Type" : [{" `Canonical" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_x" ]}},{" `Resolved" : {" `Alias" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_x" ]}},{" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," X" ]}}]}}]}," t" ]}},[]]
2418 [{" `Resolved" : {" `Type" : [{" `Canonical" : [{" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," Test_y" ]}},{" `Resolved" : {" `Alias" : [{" `Canonical" : [{" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," Test_y" ]}},{" `Dot" : [{" `Root" : " Test" }," Y" ]}]},{" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," Y" ]}}]}}]}," t" ]}},[]]
25- [{" `Resolved" : {" `Type" : [{" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," Test_z" ]}}," t" ]}},[]]
19+ [{" `Resolved" : {" `Type" : [{" `Canonical " : [{ " ` Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," Test_z" ]}},{ " `Resolved " : { " `Alias " : [{ " `Canonical " : [{ " `Identifier " : { " `Module " : [{ " `Root " : [{ " `RootPage " : " test " }, " Test " ]}, " Test_z " ]}},{ " `Dot " : [{ " `Root " : " Test " }, " Z " ]}]},{ " `Identifier " : { " `Module " : [{ " `Root " : [{ " `RootPage " : " test " }, " Test " ]}, " Z " ]}}]}}] }," t" ]}},[]]
2620
2721 $ odoc_print test. odocl | jq -c " .content.Module.items | .[] | .Module[1].type_.Alias[0] | select(.)"
2822 {" `Resolved" : {" `Canonical" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_x" ]}},{" `Resolved" : {" `Alias" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_x" ]}},{" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," X" ]}}]}}]}}
2923 {" `Resolved" : {" `Canonical" : [{" `Module" : [{" `Canonical" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_x" ]}},{" `Resolved" : {" `Alias" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_x" ]}},{" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," X" ]}}]}}]}," M" ]},{" `Resolved" : {" `Alias" : [{" `Module" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_x" ]}}," M" ]},{" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," X_m" ]}}]}}]}}
30- {" `Resolved" : {" `Module" : [{" `Canonical" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_x" ]}},{" `Resolved" : {" `Alias" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_x" ]}},{" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," X" ]}}]}}]}," N" ]}}
24+ {" `Resolved" : {" `Canonical " : [{ " ` Module" : [{" `Canonical" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_x" ]}},{" `Resolved" : {" `Alias" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_x" ]}},{" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," X" ]}}]}}]}," N" ]},{ " `Resolved " : { " `Alias " : [{ " `Module " : [{ " `Identifier " : { " `Root " : [{ " `RootPage " : " test " }, " Test_x " ]}}, " N " ]},{ " `Identifier " : { " `Module " : [{ " `Root " : [{ " `RootPage " : " test " }, " Test " ]}, " X_n " ]}}]}} ]}}
3125 {" `Resolved" : {" `Canonical" : [{" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," Test_y" ]}},{" `Resolved" : {" `Alias" : [{" `Canonical" : [{" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," Test_y" ]}},{" `Dot" : [{" `Root" : " Test" }," Y" ]}]},{" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," Y" ]}}]}}]}}
3226 {" `Resolved" : {" `Canonical" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_w" ]}},{" `Resolved" : {" `Alias" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_w" ]}},{" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," W" ]}}]}}]}}
3327 {" `Resolved" : {" `Canonical" : [{" `Module" : [{" `Canonical" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_w" ]}},{" `Resolved" : {" `Alias" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_w" ]}},{" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," W" ]}}]}}]}," M" ]},{" `Resolved" : {" `Alias" : [{" `Module" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_w" ]}}," M" ]},{" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," W_m" ]}}]}}]}}
34- {" `Resolved" : {" `Module" : [{" `Canonical" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_w" ]}},{" `Resolved" : {" `Alias" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_w" ]}},{" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," W" ]}}]}}]}," N" ]}}
35- {" `Resolved" : {" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," Test_z" ]}}}
28+ {" `Resolved" : {" `Canonical " : [{ " ` Module" : [{" `Canonical" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_w" ]}},{" `Resolved" : {" `Alias" : [{" `Identifier" : {" `Root" : [{" `RootPage" : " test" }," Test_w" ]}},{" `Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," W" ]}}]}}]}," N" ]},{ " `Resolved " : { " `Alias " : [{ " `Module " : [{ " `Identifier " : { " `Root " : [{ " `RootPage " : " test " }, " Test_w " ]}}, " N " ]},{ " `Identifier " : { " `Module " : [{ " `Root " : [{ " `RootPage " : " test " }, " Test " ]}, " W_n " ]}}]}} ]}}
29+ {" `Resolved" : {" `Canonical " : [{ " ` Identifier" : {" `Module" : [{" `Root" : [{" `RootPage" : " test" }," Test" ]}," Test_z" ]}},{ " `Resolved " : { " `Alias " : [{ " `Canonical " : [{ " `Identifier " : { " `Module " : [{ " `Root " : [{ " `RootPage " : " test " }, " Test " ]}, " Test_z " ]}},{ " `Dot " : [{ " `Root " : " Test " }, " Z " ]}]},{ " `Identifier " : { " `Module " : [{ " `Root " : [{ " `RootPage " : " test " }, " Test " ]}, " Z " ]}}]}}] }}
0 commit comments