4.1.0 • Published 2 years ago

@amsross/bs-highland v4.1.0

Weekly downloads
1
License
LGPL-3.0
Repository
github
Last release
2 years ago

bs-highland

Bucklescript/ReasonML bindings for highlandjs.

Installation

npm install --save @amsross/bs-highland

Then add @amsross/bs-highland to bs-dependencies in your bsconfig.json:

{
  ...
  "bs-dependencies": ["@amsross/bs-highland"]
}

Usage

Generators / Push / Next

Wrap pushed data in Ok(data(thing)) and errors in Error(err)

Highland.generator((push, next) => {
  condition ? push(Ok(Highland.data("something"))) : push(Error(err));
  setTimeout(() => next(Js.Nullable.null), 1000);
});
4.1.0

2 years ago

4.0.0

2 years ago

3.1.0

3 years ago

3.0.0

3 years ago

2.0.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago