Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
BinderDavid authored Oct 12, 2024
1 parent 98a3600 commit 4502947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions message-index/messages/GHC-59692/multipleInstances/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
title: Multiple Instances for Semigroup Int
---

Different definitiones for `Semigroup Int` are possible.
If we more than one, we ought to wrap `Int` in a `newtype`.
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.
If we require both instances, then we should define two `newtype` wrappers for `Int`.

0 comments on commit 4502947

Please sign in to comment.