OldType

trait OldType[O, N]
See also

sprout.NewType This typeclass is usefull for defining the contravariant functors. e.g. io.circe.Encoder for your new types.

Companion
object
class Object
trait Matchable
class Any
trait NewType[O, N]
trait RefinedType[O, N, E]

Value members

Abstract methods

@inline
def oldType(n: N): O
def symbolicName: String

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