spire.laws.shadows
package spire.laws.shadows
Type members
Classlikes
Represents a primitive value a: A
along with its shadow s: S
.
Represents a primitive value a: A
along with its shadow s: S
.
The shadow is a type S isomorphic to the primitive type A in the range where A is defined.
- Companion:
- object
trait ShadowAdditiveAbGroup[A, S] extends AdditiveCommutativeGroup[Shadow[A, S]] with ShadowAdditiveCMonoid[A, S]
trait ShadowAdditiveCMonoid[A, S] extends AdditiveCommutativeMonoid[Shadow[A, S]] with ShadowAdditiveCSemigroup[A, S]
trait ShadowCRig[A, S] extends CommutativeRig[Shadow[A, S]] with ShadowCSemiring[A, S] with ShadowMultiplicativeCMonoid[A, S]
trait ShadowCRing[A, S] extends CommutativeRing[Shadow[A, S]] with ShadowCRig[A, S] with ShadowCRng[A, S]
trait ShadowCRng[A, S] extends CommutativeRng[Shadow[A, S]] with ShadowCSemiring[A, S] with ShadowAdditiveAbGroup[A, S]
trait ShadowCSemiring[A, S] extends CommutativeSemiring[Shadow[A, S]] with ShadowAdditiveCMonoid[A, S] with ShadowMultiplicativeCSemigroup[A, S]
trait ShadowMultiplicativeCMonoid[A, S] extends MultiplicativeCommutativeMonoid[Shadow[A, S]] with ShadowMultiplicativeCSemigroup[A, S]