From 4a714c1da1132ce8066bcd785b96880c63a46958 Mon Sep 17 00:00:00 2001 From: Ben Hutchison Date: Sat, 22 Oct 2022 11:11:49 +1100 Subject: [PATCH] mention package for Mirror Newcomers (like me) don't know where `Mirror` comes from and there's actually a lot of Scala 3 content that skips over mentioning this --- docs/_docs/reference/contextual/derivation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_docs/reference/contextual/derivation.md b/docs/_docs/reference/contextual/derivation.md index e4772080aa9d..285c52e5dfd9 100644 --- a/docs/_docs/reference/contextual/derivation.md +++ b/docs/_docs/reference/contextual/derivation.md @@ -154,7 +154,7 @@ of the `Mirror` type class available. ## `Mirror` -`Mirror` type class instances provide information at the type level about the components and labelling of the type. +`scala.deriving.Mirror` type class instances provide information at the type level about the components and labelling of the type. They also provide minimal term level infrastructure to allow higher level libraries to provide comprehensive derivation support. @@ -172,7 +172,7 @@ Instances for `Mirror` are also generated conditionally for: - and where the compiler can generate a `Mirror` type class instance for each child case. -The `Mirror` type class definition is as follows: +The `scala.deriving.Mirror` type class definition is as follows: ```scala sealed trait Mirror: