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
summary: An instance has been defined twice for the same type.
4
+
introduced: 9.6.1
5
+
severity: error
6
+
---
7
+
8
+
You can only define a single instance for every type, because it must be possible to automatically resolve class constraints without any ambiguity.
9
+
Note that instances are considered the same even if they have different constraints. Only the arguments of the class are considered when matching instances.
10
+
See the [GHC User Guide](https://downloads.haskell.org/~ghc/9.10.1/docs/users_guide/exts/instances.html) for more information on instance declarations and resolution.
0 commit comments