2 * Copyright (c) 2015, Facebook, Inc.
5 * This source code is licensed under the MIT license found in the
6 * LICENSE file in the "hack" directory of this source tree.
10 (* An implementation of a set of types, using ty_compare for a total order.
11 * Typing-rule-equivalent types may get duplicated, as the equality induced
12 * by ty_compare does not expand Tvars and type aliases.
17 let compare r1 r2
= ty_compare r1 r2
23 Format.fprintf fmt
"@[<hv 2>{";
27 if sep
then Format.fprintf fmt
";@ ";
32 Format.fprintf fmt
"@,}@]"
34 let show = Format.asprintf
"%a" pp