4.1.0 • Published 4 years ago

@amsross/bs-highland v4.1.0

Weekly downloads
1
License
LGPL-3.0
Repository
github
Last release
4 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

4 years ago

4.0.0

4 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.0.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago