@amsross/bs-highland

4.1.0 • Public • Published

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);
});

/@amsross/bs-highland/

    Package Sidebar

    Install

    npm i @amsross/bs-highland

    Weekly Downloads

    1

    Version

    4.1.0

    License

    LGPL-3.0

    Unpacked Size

    19.2 kB

    Total Files

    5

    Last publish

    Collaborators

    • amsross