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/typeclasses-new.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -265,7 +265,7 @@ given readerMonad[Ctx] as Monad[[X] =>> Ctx => X] {
265
265
266
266
### Summary
267
267
268
-
The definition of a _typeclass_ is expressed in Scala 3 via a `trait`.
268
+
The definition of a _typeclass_ is expressed via a parameterised type with abstract members, such as a `trait`.
269
269
The main difference with other traits resides in how these traits are implemented.
270
270
In the case of a _typeclass_ the trait's implementations are expressed through `given ... as` type definitions, and not through classes that `extends` the trait linearly.
0 commit comments