object Service
- Annotations
- @deprecated
- Deprecated
(Since version 0.18) Deprecated in favor of Kleisli
- Source
- Service.scala
- Alphabetic
- By Inheritance
- Service
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[F[_], A, B](pf: PartialFunction[A, F[B]])(implicit arg0: Monoid[B], F: Applicative[F]): Service[F, A, B]
Lifts a partial function to an
Service
.Lifts a partial function to an
Service
. Responds with the zero of [B] for any request wherepf
is not defined. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
const[F[_], A, B](b: F[B]): Service[F, A, B]
Lifts a F into a Service.
-
def
constVal[F[_], A, B](b: ⇒ B)(implicit F: Sync[F]): Service[F, A, B]
Lifts a value into a Service.
-
def
empty[F[_], A, B](implicit arg0: Sync[F], arg1: Monoid[B]): Service[F, A, B]
A service that always returns the zero of B.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lift[F[_], A, B](f: (A) ⇒ F[B]): Service[F, A, B]
Lifts a total function to a
Service
.Lifts a total function to a
Service
. The function is expected to handle all requests it is given. Iff
is aPartialFunction
, useapply
instead. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
withFallback[F[_], A, B](fallback: Service[F, A, B])(service: Service[F, A, B])(implicit M: Semigroup[F[B]]): Service[F, A, B]
Allows Service chaining through a Monoid instance.