[Git][ghc/ghc][wip/T25647] remove wildcard usage
Patrick (@soulomoon)
gitlab at gitlab.haskell.org
Fri Feb 7 17:35:27 UTC 2025
Patrick pushed to branch wip/T25647 at Glasgow Haskell Compiler / GHC
Commits:
602f6072 by Patrick at 2025-02-08T01:35:16+08:00
remove wildcard usage
- - - - -
1 changed file:
- compiler/GHC/Types/Error.hs
Changes:
=====================================
compiler/GHC/Types/Error.hs
=====================================
@@ -298,8 +298,8 @@ data UnknownDiagnostic opts hint where
type UnknownDiagnosticFor a = UnknownDiagnostic (DiagnosticOpts a) (DiagnosticHint a)
instance (HasDefaultDiagnosticOpts opts, Outputable hint) => Diagnostic (UnknownDiagnostic opts hint) where
- type DiagnosticOpts (UnknownDiagnostic opts _) = opts
- type DiagnosticHint (UnknownDiagnostic _ hint) = hint
+ type DiagnosticOpts (UnknownDiagnostic opts hint) = opts
+ type DiagnosticHint (UnknownDiagnostic opts hint) = hint
diagnosticMessage opts (UnknownDiagnostic f _ diag) = diagnosticMessage (f opts) diag
diagnosticReason (UnknownDiagnostic _ _ diag) = diagnosticReason diag
diagnosticHints (UnknownDiagnostic _ f diag) = map f (diagnosticHints diag)
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/602f6072d5fd8039e918ab77b7adde54d5cd5312
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/602f6072d5fd8039e918ab77b7adde54d5cd5312
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20250207/c6e920df/attachment.html>
More information about the ghc-commits
mailing list