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
+1-1Lines changed: 1 addition & 1 deletion
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
-
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.
5
+
Haskell does not allow to give more than one definition of `Semigroup Int`, even though we might want to provide both an instance for the semigroup given by multiplication and the semigroup given by addition.
6
6
If we require both instances, then we should define two `newtype` wrappers for `Int`.
0 commit comments