Packages

abstract class SubtypeF extends NewtypeModuleF.SubtypeF

The class of objects corresponding to parameterized subtypes. Users should implement an object that extends this class to create their own parameterized subtypes

object Sum extends SubtypeF
type Sum[A] = Sum.Type[A]
Linear Supertypes
NewtypeModuleF.SubtypeF, NewtypeModuleF.NewtypeF, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SubtypeF
  2. SubtypeF
  3. NewtypeF
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SubtypeF()

Type Members

  1. type Type[+A] = NewtypeModuleF.SubtypeF.Type[A]
    Definition Classes
    SubtypeF → SubtypeF → NewtypeF

Value Members

  1. def apply[A](value: A): Type[A]

    Converts an instance of the underlying type to an instance of the newtype.

    Converts an instance of the underlying type to an instance of the newtype.

    Definition Classes
    NewtypeF
  2. val subtypeF: NewtypeModuleF.SubtypeF
  3. def unapply[A](value: Type[A]): Some[A]

    Allows pattern matching on newtype instances to convert them back to instances of the underlying type.

    Allows pattern matching on newtype instances to convert them back to instances of the underlying type.

    Definition Classes
    NewtypeF
  4. def unwrap[A](value: Type[A]): A

    Converts an instance of the newtype back to an instance of the underlying type.

    Converts an instance of the newtype back to an instance of the underlying type.

    Definition Classes
    NewtypeF
  5. def unwrapAll[F[_], A](value: F[Type[A]]): F[A]

    Converts an instance of a type parameterized on the newtype back to an instance of a type parameterized on the underlying type.

    Converts an instance of a type parameterized on the newtype back to an instance of a type parameterized on the underlying type. For example, this could be used to convert a list of instances of the newtype back to a list of instances of the underlying type.

    Definition Classes
    SubtypeF → NewtypeF
  6. def wrap[A](value: A): Type[A]

    Converts an instance of the underlying type to an instance of the newtype.

    Converts an instance of the underlying type to an instance of the newtype.

    Definition Classes
    NewtypeF
  7. def wrapAll[F[_], A](value: F[A]): F[Type[A]]

    Converts an instance of a type parameterized on the underlying type to an instance of a type parameterized on the newtype.

    Converts an instance of a type parameterized on the underlying type to an instance of a type parameterized on the newtype. For example, this could be used to convert a list of instances of the underlying type to a list of instances of the newtype.

    Definition Classes
    SubtypeF → NewtypeF