Health

object Health
Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Health.type

Type members

Classlikes

case object Healthy extends Health
case object Sick extends Health

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete fields

val fromBoolean: Boolean => Health
val fromString: String => Option[Health]

Implicits

Implicits

implicit val allHealthyCommutativeMonoid: CommutativeMonoid[Health]

A monoid that'll return Sick if any of the combined values are sick, Healthy otherwise.

A monoid that'll return Sick if any of the combined values are sick, Healthy otherwise.

implicit val eq: Eq[Health]
implicit val show: Show[Health]