summaryrefslogtreecommitdiff
path: root/compiler/GHC/HsToCore
diff options
context:
space:
mode:
authorAlfredo Di Napoli <alfredo@well-typed.com>2021-08-23 16:09:03 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-09-07 12:24:12 -0400
commit7fa8c32c107ee28676bd17a7f0fc797a87502779 (patch)
treeecbfa639f6ddc8b2f667eedf2911eb4d754642a1 /compiler/GHC/HsToCore
parent2735f5a6103eb99e44776da0f5b9d35a18279cbc (diff)
downloadhaskell-7fa8c32c107ee28676bd17a7f0fc797a87502779.tar.gz
Add and use new constructors to TcRnMessage
This commit adds the following constructors to the TcRnMessage type and uses them to replace sdoc-based diagnostics in some parts of GHC (e.g. TcRnUnknownMessage). It includes: * Add TcRnMonomorphicBindings diagnostic * Convert TcRnUnknownMessage in Tc.Solver.Interact * Add and use the TcRnOrphanInstance constructor to TcRnMessage * Add TcRnFunDepConflict and TcRnDupInstanceDecls constructors to TcRnMessage * Add and use TcRnConflictingFamInstDecls constructor to TcRnMessage * Get rid of TcRnUnknownMessage from GHC.Tc.Instance.Family
Diffstat (limited to 'compiler/GHC/HsToCore')
-rw-r--r--compiler/GHC/HsToCore/Errors/Ppr.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/HsToCore/Errors/Ppr.hs b/compiler/GHC/HsToCore/Errors/Ppr.hs
index eba5c12e74..3109370543 100644
--- a/compiler/GHC/HsToCore/Errors/Ppr.hs
+++ b/compiler/GHC/HsToCore/Errors/Ppr.hs
@@ -304,7 +304,7 @@ instance Diagnostic DsMessage where
DsNotYetHandledByTH{} -> noHints
DsAggregatedViewExpressions{} -> noHints
DsUnbangedStrictPatterns{} -> noHints
- DsCannotMixPolyAndUnliftedBindings{} -> [SuggestAddTypeSignature]
+ DsCannotMixPolyAndUnliftedBindings{} -> [SuggestAddTypeSignatures UnnamedBinding]
DsWrongDoBind rhs _ -> [SuggestBindToWildcard rhs]
DsUnusedDoBind rhs _ -> [SuggestBindToWildcard rhs]
DsRecBindsNotAllowedForUnliftedTys{} -> noHints