Skip to content

Commit ad8fb39

Browse files
committed
Update message-index/messages/GHC-59692/multipleInstances/index.md
1 parent 0f020a6 commit ad8fb39

File tree

1 file changed

+1
-1
lines changed
  • message-index/messages/GHC-59692/multipleInstances

1 file changed

+1
-1
lines changed

message-index/messages/GHC-59692/multipleInstances/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
title: Multiple Instances for Semigroup Int
33
---
44

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.
66
If we require both instances, then we should define two `newtype` wrappers for `Int`.

0 commit comments

Comments
 (0)