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: message-index/messages/GHC-59692/multipleInstances/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,5 +2,5 @@
2
2
title: Multiple Instances for Semigroup Int
3
3
---
4
4
5
-
Different definitiones for `Semigroup Int` are possible.
6
-
If we more than one, we ought to wrap `Int` in a `newtype`.
5
+
It is not possible to give two definitions for `Semigroup Int`, one for the semigroup given by addition and one for the semigroup given by multiplication.
6
+
If we require both instances, then we should define two `newtype` wrappers for `Int`.
0 commit comments