You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/reference/contextual/derivation.md
+1-6Lines changed: 1 addition & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -38,12 +38,7 @@ The generated typeclass instances are placed in the companion objects `Labelled`
38
38
39
39
### Derivable Types
40
40
41
-
A trait or class can appear in a `derives` clause if
42
-
43
-
- it has a single type parameter, and
44
-
- its companion object defines a method named `derived`.
45
-
46
-
These two conditions ensure that the synthesized derived instances for the trait are well-formed. The type and implementation of a `derived` method are arbitrary, but typically it has a definition like this:
41
+
A trait or class can appear in a `derives` clause if its companion object defines a method named `derived`. The type and implementation of a `derived` method are arbitrary, but typically it has a definition like this:
0 commit comments