<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>

<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>


<style>img {
max-width: 100%; height: auto;
}
body {
font-size: 0.875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";'>
<div class="content">

<h3 style="margin-top: 20px; margin-bottom: 10px;">
Marge Bot pushed to branch master
at <a href="https://gitlab.haskell.org/ghc/ghc" style="color: #1068bf;">Glasgow Haskell Compiler / GHC</a>
</h3>
<h4 style="margin-top: 10px; margin-bottom: 10px;">
Commits:
</h4>
<ul>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/0270cc54481bef9630274e77c2750940c1a4eff5" style="color: #1068bf;">0270cc54</a></strong>
<div>
<span>by Vladislav Zavialov</span>
<i>at 2022-10-26T00:02:01-04:00</i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.8125rem; color: #303030; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid #dbdbdb;'>Introduce TcRnWithHsDocContext (#22346)

Before this patch, GHC used withHsDocContext to attach an HsDocContext
to an error message:

        addErr $ mkTcRnUnknownMessage $ mkPlainError noHints (withHsDocContext ctxt msg)

The problem with this approach is that it only works with
TcRnUnknownMessage. But could we attach an HsDocContext to a
structured error message in a generic way? This patch solves
the problem by introducing a new constructor to TcRnMessage:

        data TcRnMessage where
          ...
          TcRnWithHsDocContext :: !HsDocContext -> !TcRnMessage -> TcRnMessage
          ...
</pre>
</li>
</ul>
<h4 style="margin-top: 10px; margin-bottom: 10px;">30 changed files:</h4>
<ul>
<li class="file-stats">
<a href="#892acbb198a9095c917740d3c1297b56df4e3b7e" style="color: #1068bf;">
compiler/GHC/Rename/HsType.hs
</a>
</li>
<li class="file-stats">
<a href="#7dd1cd0f6f2164a14c83d9aa564dd32bc30e447a" style="color: #1068bf;">
compiler/GHC/Rename/Module.hs
</a>
</li>
<li class="file-stats">
<a href="#939d24c1002dc322659c1f67c9f3d2db2ae31dd4" style="color: #1068bf;">
compiler/GHC/Rename/Utils.hs
</a>
</li>
<li class="file-stats">
<a href="#1dd9c7a6bbc222c976a6ec1c4b772232ae60f7e5" style="color: #1068bf;">
compiler/GHC/Tc/Errors/Ppr.hs
</a>
</li>
<li class="file-stats">
<a href="#cdba811872892f235fe7059df1a6c538fba60816" style="color: #1068bf;">
compiler/GHC/Tc/Errors/Types.hs
</a>
</li>
<li class="file-stats">
<a href="#9355bef855426caf5f526925edf351b20f9a86c4" style="color: #1068bf;">
compiler/GHC/Tc/Gen/HsType.hs
</a>
</li>
<li class="file-stats">
<a href="#e2c828ee9e003df518a07b05beaa6971e5c62eb0" style="color: #1068bf;">
compiler/GHC/Types/Error/Codes.hs
</a>
</li>
<li class="file-stats">
<a href="#75fe5b07a7498a4579fafadc4f3c1d3e6b809812" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/ExtraConstraintsWildcardInPatternSignature.stderr
</a>
</li>
<li class="file-stats">
<a href="#1977e66d9b448e9d4ea5aff5840b3313ab243552" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/ExtraConstraintsWildcardInTypeSpliceUsed.stderr
</a>
</li>
<li class="file-stats">
<a href="#8efb349384810fb25c6b8697ef67538807ab2416" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/ExtraConstraintsWildcardNotLast.stderr
</a>
</li>
<li class="file-stats">
<a href="#71527d15f3a0ddc8b603e000ed65a002530a5fb9" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/ExtraConstraintsWildcardTwice.stderr
</a>
</li>
<li class="file-stats">
<a href="#106f5aa2eee1333795799a9dde10f91c18ac6c03" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/NestedExtraConstraintsWildcard.stderr
</a>
</li>
<li class="file-stats">
<a href="#a19ba1260f39cafe8c880243c7b88dc11dc73263" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/NestedNamedExtraConstraintsWildcard.stderr
</a>
</li>
<li class="file-stats">
<a href="#4557ae77486aad93c363bfe1a91458534198c221" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/PartialClassMethodSignature.stderr
</a>
</li>
<li class="file-stats">
<a href="#195217bf6f1499b415849e6cb2ebb647793f071d" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/PartialClassMethodSignature2.stderr
</a>
</li>
<li class="file-stats">
<a href="#5e6867204b359e83823a1418bddd6ed94f46796f" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/T12039.stderr
</a>
</li>
<li class="file-stats">
<a href="#21a0dd60f9e99b93f73bc5d466e682f9ed5ca29a" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/T13324_fail1.stderr
</a>
</li>
<li class="file-stats">
<a href="#179deef9d9479e3ecd23a5b937843dfc63d981e6" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/UnnamedConstraintWildcard1.stderr
</a>
</li>
<li class="file-stats">
<a href="#5f9685dc206b81a5c93c1ea844f338e9672dd0a7" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/UnnamedConstraintWildcard2.stderr
</a>
</li>
<li class="file-stats">
<a href="#f579ab8fc84be6e82d310d07f59971e986c960e2" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/WildcardInADT1.stderr
</a>
</li>
<li class="file-stats">
<a href="#96bbf7de0fae5ef25846169650a6dc8acfaa7006" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/WildcardInADT2.stderr
</a>
</li>
<li class="file-stats">
<a href="#5eebb8e13443401bed16defd1fe1e0fba12677b1" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/WildcardInADT3.stderr
</a>
</li>
<li class="file-stats">
<a href="#42005ebc18899aa3620405f5b4d362853d1229e8" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/WildcardInADTContext1.stderr
</a>
</li>
<li class="file-stats">
<a href="#baa848136588bca435d08e1d6f88c9f246192a82" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/WildcardInDefault.stderr
</a>
</li>
<li class="file-stats">
<a href="#e866f4ef9218f0ed8ec5499eea7390f272d5ba24" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/WildcardInDefaultSignature.stderr
</a>
</li>
<li class="file-stats">
<a href="#0eec85461d11eff3eeb0364c126407cba893ac1f" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/WildcardInDeriving.stderr
</a>
</li>
<li class="file-stats">
<a href="#08a7f1a068649794684a8d37ecd30566a85401fb" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/WildcardInForeignExport.stderr
</a>
</li>
<li class="file-stats">
<a href="#01a27e9014d28ac5d3b2363a8eea1af4cb3737aa" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/WildcardInForeignImport.stderr
</a>
</li>
<li class="file-stats">
<a href="#8710911e2a33f22e704aeb3f5d2f24665c4920b5" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/WildcardInGADT1.stderr
</a>
</li>
<li class="file-stats">
<a href="#9bbd410cbb2c222c1cdfccbeea5070c19bc7b759" style="color: #1068bf;">
testsuite/tests/partial-sigs/should_fail/WildcardInGADT2.stderr
</a>
</li>
</ul>
<h5 style="margin-top: 10px; margin-bottom: 10px; font-size: 0.875rem;">The diff was not included because it is too large.</h5>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">

<br>
<a href="https://gitlab.haskell.org/ghc/ghc/-/commit/0270cc54481bef9630274e77c2750940c1a4eff5" style="color: #1068bf;">View it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://gitlab.haskell.org" style="color: #1068bf;">gitlab.haskell.org</a>. <a href="https://gitlab.haskell.org/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link" style="color: #1068bf;">Manage all notifications</a> · <a href="https://gitlab.haskell.org/help" target="_blank" rel="noopener noreferrer" class="help-link" style="color: #1068bf;">Help</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://gitlab.haskell.org/ghc/ghc/-/commit/0270cc54481bef9630274e77c2750940c1a4eff5"}}</script>


</p>
</div>
</body>
</html>