NewtypeCustom
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Members list
Type members
Types
Value members
Abstract methods
Function that will used to check runtime values before lifting them into the newtype. Should be consistent with validateInline.
Function that will used to check runtime values before lifting them into the newtype. Should be consistent with validateInline.
Attributes
Function that will be used to check compile-time values before lifting them into the newtype. Should be consistent with validate.
Function that will be used to check compile-time values before lifting them into the newtype. Should be consistent with validate.
Attributes
Concrete methods
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.
Attributes
Derives an instance of a type class for the new type given an instance of the type class for the underlying type. The caller is responsible for the type class being a valid instance for the new type.
Derives an instance of a type class for the new type given an instance of the type class for the underlying type. The caller is responsible for the type class being a valid instance for the new type.
Attributes
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.
Attributes
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.
Attributes
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.
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.
Attributes
Converts an instance of the underlying type to an instance of the newtype. Ignores the assertion.
Converts an instance of the underlying type to an instance of the newtype. Ignores the assertion.