1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
(* SPDX-License-Identifier: AGPL-3.0-or-later *)
(* Copyright © 2021-2024 OCamlPro *)
(* Written by the Owi programmers *)
(** the types of imported values *)
type 'a t =
{ modul : string
; name : string
; assigned_name : string option
; desc : 'a
}
let pp pp_desc fmt { modul; name; assigned_name; desc } =
Fmt.pf fmt "{@\n @[<v>modul: %S@\nname: %S@\nassigned_name: %a@\ndesc: %a@]}"
modul name Types.pp_id_opt assigned_name pp_desc desc