package scalaz
Package exposing the Monix integration with the Scalaz library.
See the library's documentation at scalaz.org.
To convert Monix type-class instances into Scalaz types:
import monix.scalaz._
To convert Scalaz type-class instances into Monix types:
import monix.scalaz.reverse._
Do not bring these imports into the same scope as you can experience conflicts if you do:
// Do not do this! import monix.scalaz._ import monix.scalaz.reverse._
- Source
- package.scala
- Alphabetic
- By Inheritance
- scalaz
- MonixToScalazConversions
- MonixToScalaz10
- MonixToScalaz9
- MonixToScalaz8
- MonixToScalaz7
- MonixToScalaz6
- MonixToScalaz5
- MonixToScalaz4
- MonixToScalaz3
- MonixToScalaz2
- MonixToScalaz1
- MonixToScalaz0
- MonixToScalazKernel1
- MonixToScalazKernel0
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
MonixApplicativeHasScalazMonoid[F[_], A] extends scalaz.MonixToScalazKernel1.MonixApplicativeHasScalazSemigroup[F, A] with Monoid[F[A]]
Given a Monix Applicative for
F[A]
and ascalaz.Monoid
defined forA
, thenF[A]
can also have aMonoid
instance.Given a Monix Applicative for
F[A]
and ascalaz.Monoid
defined forA
, thenF[A]
can also have aMonoid
instance.You can import monixApplicativeHasScalazMonoid in scope initiate the MonixApplicativeHasScalazMonoid class.
- Definition Classes
- MonixToScalazKernel1
-
class
MonixApplicativeHasScalazSemigroup[F[_], A] extends Semigroup[F[A]]
Given a Monix Applicative for
F[A]
and ascalaz.Semigroup
defined forA
, thenF[A]
can also have aSemigroup
instance.Given a Monix Applicative for
F[A]
and ascalaz.Semigroup
defined forA
, thenF[A]
can also have aSemigroup
instance.You can import monixApplicativeHasScalazSemigroup in scope initiate the MonixApplicativeHasScalazSemigroup class.
- Definition Classes
- MonixToScalazKernel0
-
class
MonixToScalazApplicative[F[_]] extends Applicative[F]
Converts Monix's Applicative instances into the Scalaz
Applicative
.Converts Monix's Applicative instances into the Scalaz
Applicative
.You can import monixToScalazApplicative in scope, or initiate/extend the MonixToScalazApplicative class.
- Definition Classes
- MonixToScalaz1
-
class
MonixToScalazBindRec[F[_]] extends scalaz.MonixToScalaz10.MonixToScalazMonad[F] with BindRec[F]
- Definition Classes
- MonixToScalaz10
-
class
MonixToScalazCatchable[F[_]] extends scalaz.MonixToScalaz4.MonixToScalazMonad[F] with Catchable[F]
- Definition Classes
- MonixToScalaz4
-
class
MonixToScalazCobind[F[_]] extends scalaz.MonixToScalaz5.MonixToScalazFunctor[F] with Cobind[F]
Converts Monix's Cobind instances into the Scalaz
Cobind
.Converts Monix's Cobind instances into the Scalaz
Cobind
.You can import monixToScalazCobind in scope, or initiate/extend the MonixToScalazCobind class.
- Definition Classes
- MonixToScalaz5
-
class
MonixToScalazComonad[F[_]] extends scalaz.MonixToScalaz6.MonixToScalazCobind[F] with Comonad[F]
Converts Monix's Comonad instances into the Scalaz
Comonad
.Converts Monix's Comonad instances into the Scalaz
Comonad
.You can import monixToScalazComonad in scope, or initiate/extend the MonixToScalazComonad class.
- Definition Classes
- MonixToScalaz6
-
trait
MonixToScalazConversions extends MonixToScalaz10
Defines conversions from the Monix type-classes defined in monix.types to type-class instances from the Scalaz library.
-
class
MonixToScalazFunctor[F[_]] extends Functor[F]
Converts Monix's Functor instances into the Scalaz
Functor
.Converts Monix's Functor instances into the Scalaz
Functor
.You can import monixToScalazFunctor in scope, or initiate/extend the MonixToScalazFunctor class.
- Definition Classes
- MonixToScalaz0
-
class
MonixToScalazMonad[F[_]] extends Monad[F]
Converts Monix's Monad instances into the Scalaz
Monad
.Converts Monix's Monad instances into the Scalaz
Monad
.You can import monixToScalazMonad in scope, or initiate/extend the MonixToScalazMonad class.
- Definition Classes
- MonixToScalaz2
-
class
MonixToScalazMonadError[F[_], E] extends scalaz.MonixToScalaz3.MonixToScalazMonad[F] with MonadError[F, E]
Converts Monix's MonadError instances into the Scalaz
MonadError
.Converts Monix's MonadError instances into the Scalaz
MonadError
.You can import monixToScalazMonadError in scope, or initiate/extend the MonixToScalazMonadError class.
- Definition Classes
- MonixToScalaz3
-
class
MonixToScalazMonadPlus[F[_]] extends scalaz.MonixToScalaz9.MonixToScalazMonad[F] with MonadPlus[F]
Converts Monix's MonadFilter and MonoidK instances into the Scalaz
MonadPlus
.Converts Monix's MonadFilter and MonoidK instances into the Scalaz
MonadPlus
.You can import monixToScalazMonadPlus in scope, or initiate/extend the MonixToScalazMonadPlus class.
- Definition Classes
- MonixToScalaz9
-
class
MonixToScalazPlus[F[_]] extends Plus[F]
Converts Monix's SemigroupK instances into the Scalaz
Plus
.Converts Monix's SemigroupK instances into the Scalaz
Plus
.You can import monixToScalazPlus in scope, or initiate/extend the MonixToScalazPlus class.
- Definition Classes
- MonixToScalaz7
-
class
MonixToScalazPlusEmpty[F[_]] extends scalaz.MonixToScalaz8.MonixToScalazPlus[F] with PlusEmpty[F]
- Definition Classes
- MonixToScalaz8
-
trait
ScalazToMonixConversions extends ScalazToMonix9
Defines conversions from Cats type-class instances to the Monix type-classes defined in monix.types.
Value Members
-
implicit
def
monixApplicativeHasScalazMonoid[F[_], A](implicit F: Applicative[F], A: Monoid[A]): Monoid[F[A]]
Given a Monix Applicative for
F[A]
and ascalaz.Monoid
defined forA
, thenF[A]
can also have aMonoid
instance.Given a Monix Applicative for
F[A]
and ascalaz.Monoid
defined forA
, thenF[A]
can also have aMonoid
instance.You can import monixApplicativeHasScalazMonoid in scope initiate the MonixApplicativeHasScalazMonoid class.
- Definition Classes
- MonixToScalazKernel1
-
implicit
def
monixApplicativeHasScalazSemigroup[F[_], A](implicit F: Applicative[F], A: Semigroup[A]): Semigroup[F[A]]
Given a Monix Applicative for
F[A]
and ascalaz.Semigroup
defined forA
, thenF[A]
can also have aSemigroup
instance.Given a Monix Applicative for
F[A]
and ascalaz.Semigroup
defined forA
, thenF[A]
can also have aSemigroup
instance.You can import monixApplicativeHasScalazSemigroup in scope initiate the MonixApplicativeHasScalazSemigroup class.
- Definition Classes
- MonixToScalazKernel0
-
implicit
def
monixToScalazApplicative[F[_]](implicit arg0: Applicative[F]): Applicative[F]
Converts Monix's Applicative instances into the Scalaz
Applicative
.Converts Monix's Applicative instances into the Scalaz
Applicative
.You can import monixToScalazApplicative in scope, or initiate/extend the MonixToScalazApplicative class.
- Definition Classes
- MonixToScalaz1
-
implicit
def
monixToScalazBindRec[F[_]](implicit arg0: MonadRec[F]): Monad[F] with BindRec[F]
Converts Monix's MonadRec instances into the Scalaz
BindRec
.Converts Monix's MonadRec instances into the Scalaz
BindRec
.You can import monixToScalazBindRec in scope, or initiate/extend the MonixToScalazBindRec class.
- Definition Classes
- MonixToScalaz10
-
implicit
def
monixToScalazCatchable[F[_]](implicit F: MonadError[F, Throwable]): Catchable[F]
Converts Monix's MonadError instances into the Scalaz
Catchable
.Converts Monix's MonadError instances into the Scalaz
Catchable
.You can import monixToScalazCatchable in scope, or initiate/extend the MonixToScalazCatchable class.
- Definition Classes
- MonixToScalaz4
-
implicit
def
monixToScalazCobind[F[_]](implicit arg0: Cobind[F]): Cobind[F]
Converts Monix's Cobind instances into the Scalaz
Cobind
.Converts Monix's Cobind instances into the Scalaz
Cobind
.You can import monixToScalazCobind in scope, or initiate/extend the MonixToScalazCobind class.
- Definition Classes
- MonixToScalaz5
-
implicit
def
monixToScalazComonad[F[_]](implicit arg0: Comonad[F]): Comonad[F]
Converts Monix's Comonad instances into the Scalaz
Comonad
.Converts Monix's Comonad instances into the Scalaz
Comonad
.You can import monixToScalazComonad in scope, or initiate/extend the MonixToScalazComonad class.
- Definition Classes
- MonixToScalaz6
-
implicit
def
monixToScalazFunctor[F[_]](implicit arg0: Functor[F]): Functor[F]
Converts Monix's Functor instances into the Scalaz
Functor
.Converts Monix's Functor instances into the Scalaz
Functor
.You can import monixToScalazFunctor in scope, or initiate/extend the MonixToScalazFunctor class.
- Definition Classes
- MonixToScalaz0
-
implicit
def
monixToScalazMonad[F[_]](implicit arg0: Monad[F]): Monad[F]
Converts Monix's Monad instances into the Scalaz
Monad
.Converts Monix's Monad instances into the Scalaz
Monad
.You can import monixToScalazMonad in scope, or initiate/extend the MonixToScalazMonad class.
- Definition Classes
- MonixToScalaz2
-
implicit
def
monixToScalazMonadError[F[_], E](implicit F: MonadError[F, E]): MonadError[F, E]
Converts Monix's MonadError instances into the Scalaz
MonadError
.Converts Monix's MonadError instances into the Scalaz
MonadError
.You can import monixToScalazMonadError in scope, or initiate/extend the MonixToScalazMonadError class.
- Definition Classes
- MonixToScalaz3
-
implicit
def
monixToScalazMonadPlus[F[_]](implicit arg0: MonadFilter[F], arg1: MonoidK[F]): MonadPlus[F]
Converts Monix's MonadFilter and MonoidK instances into the Scalaz
MonadPlus
.Converts Monix's MonadFilter and MonoidK instances into the Scalaz
MonadPlus
.You can import monixToScalazMonadPlus in scope, or initiate/extend the MonixToScalazMonadPlus class.
- Definition Classes
- MonixToScalaz9
-
implicit
def
monixToScalazPlus[F[_]](implicit arg0: SemigroupK[F]): Plus[F]
Converts Monix's SemigroupK instances into the Scalaz
Plus
.Converts Monix's SemigroupK instances into the Scalaz
Plus
.You can import monixToScalazPlus in scope, or initiate/extend the MonixToScalazPlus class.
- Definition Classes
- MonixToScalaz7
-
implicit
def
monixToScalazPlusEmpty[F[_]](implicit arg0: MonoidK[F]): PlusEmpty[F]
Converts Monix's MonoidK instances into the Scalaz
PlusEmpty
.Converts Monix's MonoidK instances into the Scalaz
PlusEmpty
.You can import monixToScalazPlusEmpty in scope, or initiate/extend the MonixToScalazPlusEmpty class.
- Definition Classes
- MonixToScalaz8
-
object
reverse extends ScalazToMonixConversions
Defines conversions from Scalaz type-class instances to the Monix type-classes defined in monix.types.
Defines conversions from Scalaz type-class instances to the Monix type-classes defined in monix.types.
To use:
import monix.scalaz.reverse._
Note that importing both this and the Monix to Scalaz conversions in the same scope can create conflicts:
// Don't do this! import monix.scalaz._ import monix.scalaz.reverse._
This is the API documentation for the Monix library.
Package Overview
monix.execution exposes lower level primitives for dealing with asynchronous execution:
Atomic
types, as alternative tojava.util.concurrent.atomic
monix.eval is for dealing with evaluation of results, thus exposing Task and Coeval.
monix.reactive exposes the
Observable
pattern:Observable
implementationsmonix.types implements type-class shims, to be translated to type-classes provided by libraries such as Cats or Scalaz.
monix.cats is the optional integration with the Cats library, providing translations for the types described in
monix.types
.monix.scalaz is the optional integration with the Scalaz library, providing translations for the types described in
monix.types
.