Module Middle.Type

A type which unifies SizedTypes and UnsizedTypes for declarations

type 'a t =
  1. | Sized of 'a SizedType.t
  2. | Unsized of UnsizedType.t
val map : ('a -> 'b) -> 'c t -> 'd t
val fold : ('a -> 'b -> 'a) -> 'c -> 'd t -> 'e
val t_of_sexp : 'a. (Sexplib0.Sexp.t -> 'a) -> Sexplib0.Sexp.t -> 'a t
val sexp_of_t : 'a. ('a -> Sexplib0.Sexp.t) -> 'a t -> Sexplib0.Sexp.t
val compare : 'a. ('a -> 'a -> Core__.Import.int) -> 'a t -> 'a t -> Core__.Import.int
val hash_fold_t : 'a. (Ppx_hash_lib.Std.Hash.state -> 'a -> Ppx_hash_lib.Std.Hash.state) -> Ppx_hash_lib.Std.Hash.state -> 'a t -> Ppx_hash_lib.Std.Hash.state
val pp : 'a Fmt.t -> Stdlib.Format.formatter -> 'b t -> unit
val to_unsized : 'a t -> UnsizedType.t