With the addition of namespace: true in v3, BuckleScript automatically namespaced our Wonka under the Wonka namespace. This meant that, in order to reference functions from the library in Reason, you'd have to do one of the following.
open Wonka and then use Wonka. for access.
open Wonka;
let source = Wonka.fromArray([|1, 2, 3|]);
or 2. open Wonka.Wonka
open Wonka.Wonka;
let source = fromArray([|1, 2, 3|]);
Since the module structure we use already implements namespacing manually via wonka.ml, we can safely remove the namespace field from bsconfig.json. This may necessitate a minor version bump since it would be a breaking change for people currently hacking around this with one of the above solutions.
Fixes #25.
With the addition of
namespace: true
in v3, BuckleScript automatically namespaced ourWonka
under theWonka
namespace. This meant that, in order to reference functions from the library in Reason, you'd have to do one of the following.open
Wonka and then useWonka.
for access.or 2.
open Wonka.Wonka
Since the module structure we use already implements namespacing manually via
wonka.ml
, we can safely remove thenamespace
field frombsconfig.json
. This may necessitate a minor version bump since it would be a breaking change for people currently hacking around this with one of the above solutions.