kadekm / rxscala-js-cats   0.4.0

MIT License GitHub
Scala versions: 2.12 2.11
Scala.js versions: 0.6

Cats instances for Scala.js rx

Build Status Maven Central

Install

libraryDependencies += "com.marekkadek" %%% "rxscala-js-cats" % "0.4.0"

It doesn't come bundled with the underlying rx.js file, so you'll need to either add them manually or specify them as jsDependencies:

jsDependencies += "org.webjars.npm" % "rxjs" % "5.0.1" / "bundles/Rx.min.js" commonJSName "Rx"

Usage

import cats.implicits._
import rxscalajs.instances._

def foo[F[_]: Applicative](f: F[_]) = ???
...
foo(Observable.just(1,2,3))

It uses scalajs rx facade