OrElse

sealed trait OrElse[+A, +B]

A type class for prioritized implicit search.

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.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def fold[C](prim: A => C, sec: B => C): C
def unify[C >: B](ev: A <:< C): C