Coe α β
is the typeclass for coercions from α
to β
. It can be transitively
chained with other Coe
instances, and coercion is automatically used when
x
has type α
but it is used in a context where β
is expected.
You can use the ↑x
operator to explicitly trigger coercion.
Instance Constructor
Coe.mk.{u, v}
Methods
coe : α → β
Coerces a value of type α
to type β
. Accessible by the notation ↑x
,
or by double type ascription ((x : α) : β)
.