mlms13 / bs-decode

Type-safe JSON decoding for ReasonML and OCaml
https://mlms13.github.io/bs-decode/docs/what-and-why
MIT License
103 stars 18 forks source link

Clean up top-level modules #46

Closed mlms13 closed 4 years ago

mlms13 commented 5 years ago

Proposal:

This will be a breaking change (but one that should be a super easy migration for most projects), so I'd like to get it in before 1.0.

mlms13 commented 5 years ago

I've tentatively decided that Decode is an ok module name to claim, so prefixing with Bs everywhere maybe isn't needed. But there are still some other code cleanup suggestions here, so I won't close this ticket just yet.

mlms13 commented 4 years ago

DecodeBase is now Decode.Base, and to construct a custom one, you use Decode_Base.Make, which is aliased as Decode.Make. The bsconfig.json has been updated to only expose Decode in order to avoid polluting the public namespace.