summaryrefslogtreecommitdiff
path: root/compiler/GHC/Builtin
diff options
context:
space:
mode:
authorsheaf <sam.derbyshire@gmail.com>2021-11-19 10:19:19 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-11-20 18:13:23 -0500
commit742d8b6049c30f3b0cd1704d7a34d865bef41712 (patch)
treeb22ad862ca4db2e9004d8b4ab4aafbc11bcde0a9 /compiler/GHC/Builtin
parentbc7e9f038112496c45aeb81d1504e57acb3722c7 (diff)
downloadhaskell-742d8b6049c30f3b0cd1704d7a34d865bef41712.tar.gz
Include "not more specific" info in overlap msg
When instances overlap, we now include additional information about why we weren't able to select an instance: perhaps one instance overlapped another but was not strictly more specific, so we aren't able to directly choose it. Fixes #20542
Diffstat (limited to 'compiler/GHC/Builtin')
-rw-r--r--compiler/GHC/Builtin/Names.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Builtin/Names.hs b/compiler/GHC/Builtin/Names.hs
index c051f1c559..a1cb4fbcb5 100644
--- a/compiler/GHC/Builtin/Names.hs
+++ b/compiler/GHC/Builtin/Names.hs
@@ -2757,7 +2757,7 @@ Situations in which we apply this special logic:
class Cls a
because BoxedRep/Lifted were not in scope.
- See GHC.Tc.Errors.pprPotentials.
+ See GHC.Tc.Errors.potentialInstancesErrMsg.
This fixes one of the issues reported in #20465.
-}