Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 924 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 924 Bytes

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