Parameter Polymorphic.1-P

include Type.Polymorphic_input
val name : 'a Type.t -> string

How to build a name for each monomorphic instance of the type value from the underlying type.

val module_name : string

The name of the built module.

val structural_descr : Structural_descr.t -> Structural_descr.t

How to build the structural descriptor for each monomorphic instance.

  • since Carbon-20101201
type 'a t

Static polymorphic type corresponding to its dynamic counterpart to register.

val reprs : 'a -> 'a t list

How to make the representant of each monomorphic instance of the polymorphic type value from an underlying representant.

val mk_equal : ( 'a -> 'a -> bool ) -> 'a t -> 'a t -> bool
val mk_compare : ( 'a -> 'a -> int ) -> 'a t -> 'a t -> int
val mk_hash : ( 'a -> int ) -> 'a t -> int
val map : ( 'a -> 'a ) -> 'a t -> 'a t
val mk_pretty : ( Stdlib.Format.formatter -> 'a -> unit ) -> Stdlib.Format.formatter -> 'a t -> unit
val mk_mem_project : ( ( Project_skeleton.t -> bool ) -> 'a -> bool ) -> ( Project_skeleton.t -> bool ) -> 'a t -> bool