API
Melange exposes three libraries:
- A standard library, which mostly replicates that of OCaml for compatibility: the
StdliblibraryStdliblibrary - Bindings to several browser and Node JavaScript APIs in the
JslibraryJslibrary - Data structures and collection types in the
BeltlibraryBeltlibrary
Using one or the other will depend on your application requirements, how much integration you need with existing JavaScript libraries, or other specific characteristics of your project. In any case, the three of them can be used in the same project without issues.