← ZIO Prelude docs

zio.prelude.newtypes

Members list

Type members

Classlikes

object And extends Subtype[Boolean]

Attributes

Source
package.scala
Supertypes
class Subtype[Boolean]
class Newtype[Boolean]
class Object
trait Matchable
class Any
Show all
Self type
And.type
object AndF extends SubtypeF

Attributes

Source
package.scala
Supertypes
class SubtypeF
trait instance.SubtypeF
trait instance.NewtypeF
class Object
trait Matchable
class Any
Show all
Self type
AndF.type
object AndThen extends SubtypeF

Attributes

Source
package.scala
Supertypes
class SubtypeF
trait instance.SubtypeF
trait instance.NewtypeF
class Object
trait Matchable
class Any
Show all
Self type
AndThen.type
object Both extends SubtypeF

Attributes

Source
package.scala
Supertypes
class SubtypeF
trait instance.SubtypeF
trait instance.NewtypeF
class Object
trait Matchable
class Any
Show all
Self type
Both.type
object Failure extends NewtypeF

A newtype representing another type in a failed state

A newtype representing another type in a failed state

Attributes

Source
package.scala
Supertypes
class NewtypeF
trait instance.NewtypeF
class Object
trait Matchable
class Any
Self type
Failure.type
object FailureIn extends NewtypeF

A newtype representing an input error in another type

A newtype representing an input error in another type

Attributes

Source
package.scala
Supertypes
class NewtypeF
trait instance.NewtypeF
class Object
trait Matchable
class Any
Self type
FailureIn.type
object FailureOut extends NewtypeF

A newtype representing an output error in another type

A newtype representing an output error in another type

Attributes

Source
package.scala
Supertypes
class NewtypeF
trait instance.NewtypeF
class Object
trait Matchable
class Any
Self type
FailureOut.type
object First extends SubtypeF

Attributes

Source
package.scala
Supertypes
class SubtypeF
trait instance.SubtypeF
trait instance.NewtypeF
class Object
trait Matchable
class Any
Show all
Self type
First.type
object Last extends SubtypeF

Attributes

Source
package.scala
Supertypes
class SubtypeF
trait instance.SubtypeF
trait instance.NewtypeF
class Object
trait Matchable
class Any
Show all
Self type
Last.type
object Max extends SubtypeF

Attributes

Source
package.scala
Supertypes
class SubtypeF
trait instance.SubtypeF
trait instance.NewtypeF
class Object
trait Matchable
class Any
Show all
Self type
Max.type
object Min extends SubtypeF

Attributes

Source
package.scala
Supertypes
class SubtypeF
trait instance.SubtypeF
trait instance.NewtypeF
class Object
trait Matchable
class Any
Show all
Self type
Min.type
object Natural extends Subtype[Int]

Attributes

Source
package.scala
Supertypes
class Subtype[Int]
class Newtype[Int]
class Object
trait Matchable
class Any
Show all
Self type
Natural.type
object Or extends Subtype[Boolean]

Attributes

Source
package.scala
Supertypes
class Subtype[Boolean]
class Newtype[Boolean]
class Object
trait Matchable
class Any
Show all
Self type
Or.type
object OrF extends SubtypeF

Attributes

Source
package.scala
Supertypes
class SubtypeF
trait instance.SubtypeF
trait instance.NewtypeF
class Object
trait Matchable
class Any
Show all
Self type
OrF.type
object Prod extends SubtypeF

Attributes

Source
package.scala
Supertypes
class SubtypeF
trait instance.SubtypeF
trait instance.NewtypeF
class Object
trait Matchable
class Any
Show all
Self type
Prod.type
object Sum extends SubtypeF

Attributes

Source
package.scala
Supertypes
class SubtypeF
trait instance.SubtypeF
trait instance.NewtypeF
class Object
trait Matchable
class Any
Show all
Self type
Sum.type

Types

type And = Type

A newtype representing logical conjunction.

A newtype representing logical conjunction.

Attributes

Source
package.scala
type AndF[+A] = subtypeF.Type[A]

A newtype representing parameterized logical conjunction.

A newtype representing parameterized logical conjunction.

Attributes

Source
package.scala
type AndThen[+A] = subtypeF.Type[A]

Attributes

Source
package.scala
type Both[+A] = subtypeF.Type[A]

Attributes

Source
package.scala
type Failure[+A] = newtypeF.Type[A]

Attributes

Source
package.scala
type FailureIn[+A] = newtypeF.Type[A]

Attributes

Source
package.scala
type FailureOut[+A] = newtypeF.Type[A]

Attributes

Source
package.scala
type First[A] = subtypeF.Type[A]

A newtype representing taking the first of two elements.

A newtype representing taking the first of two elements.

Attributes

Source
package.scala
type Last[A] = subtypeF.Type[A]

A newtype representing taking the last of two elements.

A newtype representing taking the last of two elements.

Attributes

Source
package.scala
type Max[A] = subtypeF.Type[A]

A newtype representing taking the max of two elements.

A newtype representing taking the max of two elements.

Attributes

Source
package.scala
type Min[A] = subtypeF.Type[A]

A newtype representing taking the min of two elements.

A newtype representing taking the min of two elements.

Attributes

Source
package.scala
type Natural = Type

Attributes

Source
package.scala
type Or = Type

A newtype representing logical disjunction.

A newtype representing logical disjunction.

Attributes

Source
package.scala
type OrF[+A] = subtypeF.Type[A]

A newtype representing parameterized logical disjunction.

A newtype representing parameterized logical disjunction.

Attributes

Source
package.scala
type Prod[A] = subtypeF.Type[A]

A newtype representing multiplication.

A newtype representing multiplication.

Attributes

Source
package.scala
type Sum[A] = subtypeF.Type[A]

A newtype representing addition.

A newtype representing addition.

Attributes

Source
package.scala