Skip to content

Commit 8d4aabd

Browse files
committed
Compatibility with ocaml/odoc#1081
"Overhaul of module-type-of and shadowing"
1 parent 0e99b14 commit 8d4aabd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index/typename.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ and show_signature h sig_ =
1919
| `ModuleType (_, p) ->
2020
Format.fprintf h "%s" (Odoc_model.Names.ModuleTypeName.to_string p)
2121

22-
let show_type_name_verbose h : Path.Type.t -> _ = function
22+
let rec show_type_name_verbose h : Path.Type.t -> _ = function
2323
| `Resolved t ->
2424
Format.fprintf h "%a" show_ident_long Path.Resolved.(identifier (t :> t))
2525
| `Identifier (path, _hidden) ->
@@ -31,5 +31,6 @@ let show_type_name_verbose h : Path.Type.t -> _ = function
3131
"%s.%s"
3232
(Odoc_document.Url.render_path (mdl :> Path.t))
3333
(Odoc_model.Names.TypeName.to_string x)
34+
| `SubstitutedT x -> show_type_name_verbose h x
3435

3536
let to_string t = Format.asprintf "%a" show_type_name_verbose t

0 commit comments

Comments
 (0)