Packages

sealed trait OrElse[+A, +B] extends AnyRef

A type class for prioritized implicit search.

Useful for specifying type class instance alternatives. Examples:

  • Async[F] OrElse Sync[F]
  • Concurrent[F] OrElse Async[F]

Inspired by the implementations in Shapeless and Algebra.

Source
OrElse.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OrElse
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def fold[C](prim: (A) => C, sec: (B) => C): C
  2. abstract def unify[C >: B](implicit ev: <:<[A, C]): C