- See also
sprout.NewType This typeclass is usefull for defining the contravariant functors. e.g. io.circe.Encoder for your new types.
- Companion
- object
Value members
Abstract methods
Ought to be used only for pretty printing and debug messages, not intented to represent extremly precise and consistent values that can be relied on in mission critical code
Ought to be used only for pretty printing and debug messages, not intented to represent extremly precise and consistent values that can be relied on in mission critical code
- Returns
e.g.
object TestValue extends Sprout[Int] //which extends OldType type TestValue = TestValue.Type
returns TestValue