Gist.Sum
Operating on sums.
type 's t = 's sum
The type for sum types of type 's
's
val meta : 's sum -> 's Meta.t
meta s is the meta of s.
meta s
s
val type_name : 's sum -> string
type_name s is the type name of s.
type_name s
val to_variant : 's sum -> 's variant
to_variant s is s as a variant type representation. This generalizes the specialized sum cases to the generic representation of variants.
to_variant s
sum
val with_meta : 's Meta.t -> 's sum -> 's sum
with_meta meta p is p with meta meta.
with_meta meta p
p
meta