1.4.0-beta.5
Pre-release
Pre-release
- Changed the representation of untagged union types and intersection types to make it easier to use.
('a, 'b) and_and('a, 'b) or_types are removed in this change.- This is a breaking change.
- Union types appearing as argument of function are now emitted in a simpler form:
[`U1 of t1 | `U2 of t2 | .. ] [@js.union].- Now you don't have to do
Union.inject_non function arguments. - This is a breaking change.
- Now you don't have to do
- Union of primitive types are now represented as
[...] Primitive.t.- Use
Primitive.classifyfunction to convert it to a polymorphic variant, on which you canmatchdirectly. 'a or_XXXtypes are removed in this change.- This is a breaking change.
- Use