magnolia.examples

Type members

Classlikes

case class Bar(c: Char, fs: Foo*)
trait Csv[A]
Companion
object
object Csv extends Derivation[[A] =>> Csv[A]]
Companion
class
trait Decoder[T]

very basic decoder for converting strings to other types

very basic decoder for converting strings to other types

Companion
object
object Decoder extends AutoDerivation[[T] =>> Decoder[T]]

derivation object (and companion object) for Decoder instances

derivation object (and companion object) for Decoder instances

Companion
class
trait Eq[T]
Companion
object
object Eq extends AutoDerivation[[T] =>> Eq[T]]
Companion
class
class ExportedTypeclass[T]()
Companion
object
object ExportedTypeclass extends Derivation[[T] =>> ExportedTypeclass[T]]
Companion
class
case class Foo(x: Int, y: String)
trait GenericPrint extends AutoDerivation[[T] =>> Print[T]]
trait GenericShow[Out] extends AutoDerivation[[X] =>> Show[Out, X]]
trait HasDefault[T]

typeclass for providing a default value for a particular type

typeclass for providing a default value for a particular type

Companion
object
object HasDefault extends AutoDerivation[[T] =>> HasDefault[T]]

companion object and derivation object for HasDefault

companion object and derivation object for HasDefault

Companion
class
sealed abstract class LowerPriorityPatcher
sealed abstract class Patcher[T]

Type class for copying an instance of some type T, thereby replacing certain fields with other values.

Type class for copying an instance of some type T, thereby replacing certain fields with other values.

Companion
object
object Patcher extends LowerPriorityPatcher with Derivation[[T] =>> Patcher[T]]
Companion
class
trait Print[T]
Companion
object
object Print extends GenericPrint
Companion
class
trait SemiPrint[A]
Companion
object
object SemiPrint extends Derivation[[A] =>> SemiPrint[A]]
Companion
class
trait Show[Out, T]

shows one type as another, often as a string

shows one type as another, often as a string

Note that this is a more general form of Show than is usual, as it permits the return type to be something other than a string.

Companion
object
object Show extends GenericShow[String]

companion object to Show

companion object to Show

Companion
class
trait SubtypeInfo[T]
Companion
object
object SubtypeInfo extends Derivation[[T] =>> SubtypeInfo[T]]
Companion
class
trait TypeNameInfo[T]
Companion
object
object TypeNameInfo extends Derivation[[T] =>> TypeNameInfo[T]]
Companion
class
trait WeakHash[T]
Companion
object
object WeakHash extends Derivation[[T] =>> WeakHash[T]]
Companion
class

Deprecated classlikes

@Deprecated
case class JavaAnnotatedCase(v: Int)
Deprecated

Extensions

Extensions

extension (value: A)
def csv[A](`evidence$1`: Csv[A]): List[String]