Skip to content

Commit 3774a19

Browse files
authored
Merge pull request #1720 from typelevel/fix-334
type classes with only defined laws to guideline
2 parents 623e81e + fd21cba commit 3774a19

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/src/main/tut/guidelines.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,11 @@ abstract class KleisliInstance1 {
111111
}
112112
```
113113

114+
### Type classes that ONLY define laws.
115+
116+
We can introduce new type classes for the sake of adding laws that don't apply to the parent type class, e.g. `CommutativeSemigroup` and
117+
`CommutativeArrow`.
118+
114119
#### TODO:
120+
115121
Once we drop 2.10 support, AnyVal-extending class constructor parameters can be marked as private.

0 commit comments

Comments
 (0)