Skip to content

Commit 204781f

Browse files
committed
Fix type class spelling
1 parent 31566b7 commit 204781f

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

docs/blog/_posts/2019-08-30-18th-dotty-milestone-release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ We are making steady progress with the language metaprogramming features. The me
264264
- Runtime staging `run` moved to `scala.quoted.staging` in [#7077](https://github.com/lampepfl/dotty/pull/7077).
265265
- Runtime staging factored out to a separate library in [#7080](https://github.com/lampepfl/dotty/pull/7080).
266266

267-
## Type class Derivation
267+
## Type Class Derivation
268268
Type class derivation has received a major rework and an [updated documentation](https://dotty.epfl.ch/docs/reference/contextual/derivation.html). We have dropped the usage of the `Shape` type to describe the shape of a type. Instead, all the relevant information is now encoded in the `Mirror` type and its subtypes as tuples.
269269

270270
For more information, see the [documentation](https://dotty.epfl.ch/docs/reference/contextual/derivation.html).

docs/blog/_posts/2020-06-22-25th-dotty-milestone-release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Product -- Tuple -+- EmptyTuple
2424
+- NonEmptyTuple -- *:[Head, Tail <: Tuple]
2525
```
2626

27-
This change impacts existing typeclass derivation codebases in that they now should use `EmptyTuple` instead of `Unit` in the tuple context.
27+
This change impacts existing type class derivation codebases in that they now should use `EmptyTuple` instead of `Unit` in the tuple context.
2828

2929
# Avoid excessive slowdowns when suggesting missing imports in error messages
3030
Dotty brings to the user an enhanced error reporting when it comes to programming with givens. This better error reporting, however, proved to be a trade-off. Sometimes it takes an unreasonable amount of time and space to compute a quality suggestion to the end user.

docs/docs/reference/changed-features/structural-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Structural calls like this tend to be much slower than normal method calls. The
115115
`reflectiveSelectable` conversion. However, to warn against inefficient
116116
dispatch, Scala 2 requires a language import `import scala.language.reflectiveCalls`.
117117

118-
Before resorting to structural calls with Java reflection one should consider alternatives. For instance, sometimes a more a modular _and_ efficient architecture can be obtained using typeclasses.
118+
Before resorting to structural calls with Java reflection one should consider alternatives. For instance, sometimes a more a modular _and_ efficient architecture can be obtained using type classes.
119119

120120
## Extensibility
121121

docs/docs/reference/contextual/motivation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ This section also contains pages describing other language features that are rel
6060

6161
- [Context Bounds](./context-bounds.md), which carry over unchanged.
6262
- [Extension Methods](./extension-methods.md) replace implicit classes in a way that integrates better with type classes.
63-
- [Implementing Type classes](type-classes.md) demonstrates how some common type classes can be implemented using the new constructs.
64-
- [Type class Derivation](./derivation.md) introduces constructs to automatically derive type class instances for ADTs.
63+
- [Implementing Type Classes](type-classes.md) demonstrates how some common type classes can be implemented using the new constructs.
64+
- [Type Class Derivation](./derivation.md) introduces constructs to automatically derive type class instances for ADTs.
6565
- [Multiversal Equality](./multiversal-equality.md) introduces a special type class to support type safe equality.
6666
- [Context Functions](./context-functions.md) provide a way to abstract over context parameters.
6767
- [By-Name Context Parameters](./by-name-context-parameters.md) are an essential tool to define recursive synthesized values without looping.

docs/docs/reference/contextual/relationship-implicits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ implicit class CircleDecorator(c: Circle) extends AnyVal {
125125

126126
Abstract extension methods in traits that are implemented in given instances have no direct counterpart in Scala-2. The only way to simulate these is to make implicit classes available through imports. The Simulacrum macro library can automate this process in some cases.
127127

128-
### Type class Derivation
128+
### Type Class Derivation
129129

130130
Type class derivation has no direct counterpart in the Scala 2 language. Comparable functionality can be achieved by macro-based libraries such as Shapeless, Magnolia, or scalaz-deriving.
131131

docs/sidebar.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ sidebar:
5757
url: docs/reference/contextual/extension-methods.html
5858
- title: Implementing Type classes
5959
url: docs/reference/contextual/type-classes.html
60-
- title: Type class Derivation
60+
- title: Type Class Derivation
6161
url: docs/reference/contextual/derivation.html
6262
- title: Multiversal Equality
6363
url: docs/reference/contextual/multiversal-equality.html

tests/patmat/i6088.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ trait ~>[F[_], G[_]] {
33
def apply[A](fa: F[A]): G[A]
44
}
55

6-
/** Higher-kinded pattern functor typeclass. */
6+
/** Higher-kinded pattern functor type class. */
77
trait HFunctor[H[f[_], i]] {
88
def hmap[A[_], B[_]](nt: A ~> B): ([x] =>> H[A,x]) ~> ([x] =>> H[B,x])
99
}

0 commit comments

Comments
 (0)