Skip to content

Commit

Permalink
Wrap module type constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
gpetiot committed Jan 16, 2024
1 parent e48950f commit cea6493
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/Fmt_ast.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4189,7 +4189,7 @@ and fmt_module_expr ?(dock_struct = true) c ({ast= m; _} as xmod) =
| Pmod_unpack (e, ty1, ty2) ->
let package_type sep (lid, cstrs) =
break 1 (Params.Indent.mod_unpack_annot c.conf)
$ hvbox 0
$ hovbox 0
( hovbox 0 (str sep $ fmt_longident_loc c lid)
$ fmt_package_type c ctx cstrs )
in
Expand Down
6 changes: 2 additions & 4 deletions test/passing/tests/module.ml
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,9 @@ let _ =
let module M =
( val (* aa *) m (* bb *)
: (* cc *)
M
with type t = t (* dd *)
M with type t = t (* dd *)
:> (* ee *)
N
with type t = t (* ff *) )
N with type t = t (* ff *) )
in
()

Expand Down

0 comments on commit cea6493

Please sign in to comment.