stringInstance

object stringInstance extends Monoid[String] with Show[String] with Equal[String] with Order[String] with IsEmpty[[α] =>> String]
trait IsEmpty[[α] =>> String]
trait PlusEmpty[[α] =>> String]
trait Plus[[α] =>> String]
trait Order[String]
trait Equal[String]
trait Show[String]
trait Monoid[String]
trait Semigroup[String]
class Object
trait Matchable
class Any

Type members

Inherited classlikes

trait EmptyLaw
Inherited from
PlusEmpty
trait EqualLaw
Inherited from
Equal
Inherited from
IsEmpty
trait MonoidLaw

Monoid instances must satisfy scalaz.Semigroup.SemigroupLaw and 2 additional laws:

Monoid instances must satisfy scalaz.Semigroup.SemigroupLaw and 2 additional laws:

  • '''left identity''': forall a. append(zero, a) == a
  • '''right identity''' : forall a. append(a, zero) == a
Inherited from
Monoid
trait OrderLaw
Inherited from
Order
trait PlusLaw
Inherited from
Plus

A semigroup in type F must satisfy two laws:

A semigroup in type F must satisfy two laws:

  • '''closure''': ∀ a, b in F, append(a, b) is also in F. This is enforced by the type system.
  • '''associativity''': ∀ a, b, c in F, the equation append(append(a, b), c) = append(a, append(b , c)) holds.
Inherited from
Semigroup

Types

type SA[α] = String

Value members

Concrete methods

def append(f1: String, f2: => String): String
def empty[A]: String
override
def equal(x: String, y: String): Boolean
Definition Classes
override
def equalIsNatural: Boolean
Definition Classes
def isEmpty[A](s: SA[A]): Boolean
def order(x: String, y: String): Ordering
def plus[A](f1: SA[A], f2: => SA[A]): String
override
def show(f: String): Cord
Definition Classes
override
def shows(f: String): String
Definition Classes
def zero: String

Inherited methods

final
def applicative: Applicative[[α] =>> String]

A monoidal applicative functor, that implements point and ap with the operations zero and append respectively. Note that the type parameter α in Applicative[λ[α => F]] is discarded; it is a phantom type. As such, the functor cannot support scalaz.Bind.

A monoidal applicative functor, that implements point and ap with the operations zero and append respectively. Note that the type parameter α in Applicative[λ[α => F]] is discarded; it is a phantom type. As such, the functor cannot support scalaz.Bind.

Inherited from
Monoid
def apply(x: String, y: String): Ordering
Inherited from
Order
final
def apply: Apply[[α] =>> String]

An scalaz.Apply, that implements ap with append. Note that the type parameter α in Apply[λ[α => F]] is discarded; it is a phantom type. As such, the functor cannot support scalaz.Bind.

An scalaz.Apply, that implements ap with append. Note that the type parameter α in Apply[λ[α => F]] is discarded; it is a phantom type. As such, the functor cannot support scalaz.Bind.

Inherited from
Semigroup
final
def category: Category[[α, β] =>> String]

Every Monoid gives rise to a scalaz.Category, for which the type parameters are phantoms.

Every Monoid gives rise to a scalaz.Category, for which the type parameters are phantoms.

Note

category.monoid = this

Inherited from
Monoid
override
def compose[G[_]]: PlusEmpty[[α] =>> String]

The composition of PlusEmpty F and G, [x]F[G[x]], is a PlusEmpty

The composition of PlusEmpty F and G, [x]F[G[x]], is a PlusEmpty

Definition Classes
Inherited from
PlusEmpty
final
def compose: Compose[[α, β] =>> String]

Every Semigroup gives rise to a scalaz.Compose, for which the type parameters are phantoms.

Every Semigroup gives rise to a scalaz.Compose, for which the type parameters are phantoms.

Note

compose.semigroup = this

Inherited from
Semigroup
override
def contramap[B](f: B => String): Order[B]
Definition Classes
Inherited from
Order
Inherited from
Equal
def greaterThan(x: String, y: String): Boolean
Inherited from
Order
def greaterThanOrEqual(x: String, y: String): Boolean
Inherited from
Order
final
def ifEmpty[B](a: String)(t: => B)(f: => B)(implicit eq: Equal[String]): B
Inherited from
Monoid
Inherited from
IsEmpty
def isMZero(a: String)(implicit eq: Equal[String]): Boolean

Whether a == zero.

Whether a == zero.

Inherited from
Monoid
def lessThan(x: String, y: String): Boolean
Inherited from
Order
def lessThanOrEqual(x: String, y: String): Boolean
Inherited from
Order
def max(x: String, y: String): String
Inherited from
Order
def min(x: String, y: String): String
Inherited from
Order
def monoid[A]: Monoid[String]
Inherited from
PlusEmpty
Inherited from
Monoid
def multiply(value: String, n: Int): String

For n = 0, zero For n = 1, append(zero, value) For n = 2, append(append(zero, value), value)

For n = 0, zero For n = 1, append(zero, value) For n = 2, append(append(zero, value), value)

Inherited from
Monoid
def multiply1(value: String, n: Int): String

For n = 0, value For n = 1, append(value, value) For n = 2, append(append(value, value), value)

For n = 0, value For n = 1, append(value, value) For n = 2, append(append(value, value), value)

The default definition uses peasant multiplication, exploiting associativity to only require O(log n) uses of append

Inherited from
Semigroup
final
def onEmpty[A, B](a: String)(v: => B)(implicit eq: Equal[String], mb: Monoid[B]): B
Inherited from
Monoid
final
def onNotEmpty[B](a: String)(v: => B)(implicit eq: Equal[String], mb: Monoid[B]): B
Inherited from
Monoid
Inherited from
Order
Inherited from
PlusEmpty
Inherited from
Plus
def product[G[_]](implicit G0: PlusEmpty[G]): PlusEmpty[[α] =>> (String, G[α])]

The product of PlusEmpty F and G, [x](F[x], G[x]]), is a PlusEmpty

The product of PlusEmpty F and G, [x](F[x], G[x]]), is a PlusEmpty

Inherited from
PlusEmpty
def product[G[_]](implicit G0: Plus[G]): Plus[[α] =>> (String, G[α])]

The product of Plus F and G, [x](F[x], G[x]]), is a Plus

The product of Plus F and G, [x](F[x], G[x]]), is a Plus

Inherited from
Plus
def reverseOrder: Order[String]
Inherited from
Order
def semigroup[A]: Semigroup[String]
Inherited from
Plus
def sort(x: String, y: String): (String, String)
Inherited from
Order
def toScalaOrdering: Ordering[String]
Note

Order.fromScalaOrdering(toScalaOrdering).order(x, y) = this.order(x, y)

Inherited from
Order
def unfoldlPsum[S, A](seed: S)(f: S => Maybe[(S, String)]): String
Inherited from
PlusEmpty
def unfoldlPsumOpt[S, A](seed: S)(f: S => Maybe[(S, String)]): Maybe[String]

Unfold seed to the left and sum using plus. Plus instances with right absorbing elements may override this method to not unfold more than is necessary to determine the result.

Unfold seed to the left and sum using plus. Plus instances with right absorbing elements may override this method to not unfold more than is necessary to determine the result.

Inherited from
Plus
def unfoldlSum[S](seed: S)(f: S => Maybe[(S, String)]): String
Inherited from
Monoid
def unfoldlSumOpt[S](seed: S)(f: S => Maybe[(S, String)]): Maybe[String]

Unfold seed to the left and sum using append. Semigroups with right absorbing elements may override this method to not unfold more than is necessary to determine the result.

Unfold seed to the left and sum using append. Semigroups with right absorbing elements may override this method to not unfold more than is necessary to determine the result.

Inherited from
Semigroup
def unfoldrPsum[S, A](seed: S)(f: S => Maybe[(String, S)]): String
Inherited from
PlusEmpty
def unfoldrPsumOpt[S, A](seed: S)(f: S => Maybe[(String, S)]): Maybe[String]

Unfold seed to the right and sum using plus. Plus instances with left absorbing elements may override this method to not unfold more than is necessary to determine the result.

Unfold seed to the right and sum using plus. Plus instances with left absorbing elements may override this method to not unfold more than is necessary to determine the result.

Inherited from
Plus
def unfoldrSum[S](seed: S)(f: S => Maybe[(String, S)]): String
Inherited from
Monoid
def unfoldrSumOpt[S](seed: S)(f: S => Maybe[(String, S)]): Maybe[String]

Unfold seed to the right and sum using append. Semigroups with left absorbing elements may override this method to not unfold more than is necessary to determine the result.

Unfold seed to the right and sum using append. Semigroups with left absorbing elements may override this method to not unfold more than is necessary to determine the result.

Inherited from
Semigroup

Inherited fields

Inherited from
Equal
val isEmptySyntax: IsEmptySyntax[[α] =>> String]
Inherited from
IsEmpty
Inherited from
Monoid
Inherited from
Order
val plusEmptySyntax: PlusEmptySyntax[[α] =>> String]
Inherited from
PlusEmpty
val plusSyntax: PlusSyntax[[α] =>> String]
Inherited from
Plus
Inherited from
Semigroup
val showSyntax: ShowSyntax[String]
Inherited from
Show