<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en" style='--code-editor-font: var(--default-mono-font, "GitLab Mono"), JetBrains Mono, Menlo, DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace;'>
<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: var(--default-regular-font, "GitLab Sans"),-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: var(--default-regular-font, "GitLab Sans"),-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;">
Andrei Borzenkov pushed to branch wip/sand-witch/lazy-skol at <a href="https://gitlab.haskell.org/ghc/ghc">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/be84c48d2efe68fe74d53982d9ae2d0b7f6e9c92">be84c48d</a></strong>
<div>
<span> by Andrei Borzenkov </span> <i> at 2023-12-14T17:53:51+04:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 14px; color: #333238; position: relative; font-family: var(--default-mono-font, "GitLab Mono"),"JetBrains Mono","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: #fbfafd; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid #dcdcde;'>Lazy skolemisation for @a-binders (17594)

This patch is a preparation for @a-binders implementation.
We have to accept SigmaType in matchExpectedFunTys function
to implement them. To achieve that, I made skolemization more
lazy. This leads to

- Changing tcPolyCheck function. Now it collects skolemised
  type variables and passes a list of them into tc_match_fun,
  so they could be used as [ExpPatType] with @-binsers.
- Changing tcExprSig function, so now it only skolemises signature
  if there is `ScopedTypeVariables` extension enabled.
- Changing tcPolyExpr function. Now it goes deeper into type if type
  actually is
    1) HsPar
    2) HsLam
  In all other cases tcPolyExpr immediately skolemises a type as it was
  previously.

These changes would allow lambdas to accept invisible type arguments
in the most interesting contexts.
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/d6b004cc04ac7c2ecd5a8aeeca7028e8d9460782">d6b004cc</a></strong>
<div>
<span> by Andrei Borzenkov </span> <i> at 2023-12-14T17:57:29+04:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 14px; color: #333238; position: relative; font-family: var(--default-mono-font, "GitLab Mono"),"JetBrains Mono","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: #fbfafd; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid #dcdcde;'>fixup! Lazy skolemisation for @a-binders (17594)
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/1b53bd98d10e731c11446e80bf6dce5f94bde860">1b53bd98</a></strong>
<div>
<span> by Andrei Borzenkov </span> <i> at 2023-12-14T18:00:07+04:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 14px; color: #333238; position: relative; font-family: var(--default-mono-font, "GitLab Mono"),"JetBrains Mono","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: #fbfafd; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid #dcdcde;'>Use flag instead of [ExpPatTy]
</pre>
</li>
</ul>
<h4 style="margin-top: 10px; margin-bottom: 10px;">
30 changed files:
</h4>
<ul>
<li class="file-stats">
<a href="#578c7c3857d66d963736ff6742f3433a0e8d01b7">
compiler/GHC/Core/TyCo/Rep.hs
</a>
</li>
<li class="file-stats">
<a href="#83f745d921da7adb739e81f83e1c07e723e4a789">
compiler/GHC/Tc/Gen/Bind.hs
</a>
</li>
<li class="file-stats">
<a href="#902811828741e6bcd64702935bbb54edbbd070ef">
compiler/GHC/Tc/Gen/Expr.hs
</a>
</li>
<li class="file-stats">
<a href="#8dec347fbe40358b852d7b50ace1e4d62b9b6660">
compiler/GHC/Tc/Gen/Expr.hs-boot
</a>
</li>
<li class="file-stats">
<a href="#36920f1fa315563c590243b1b096096bc305ca70">
compiler/GHC/Tc/Gen/Head.hs
</a>
</li>
<li class="file-stats">
<a href="#3377164bfe9a1f1a8cfd588703ae1e0ea1e91cf9">
compiler/GHC/Tc/Gen/Match.hs
</a>
</li>
<li class="file-stats">
<a href="#b28f2a9a42f420338f6ed7df6d45db22d24f195b">
compiler/GHC/Tc/Gen/Match.hs-boot
</a>
</li>
<li class="file-stats">
<a href="#3ee8be814b6c6727880deab3772e6af922524bf0">
compiler/GHC/Tc/Gen/Pat.hs
</a>
</li>
<li class="file-stats">
<a href="#eade747fa0a15693c67617629e286714fce958e4">
compiler/GHC/Tc/Gen/Sig.hs
</a>
</li>
<li class="file-stats">
<a href="#59d42d45d27a766c3ef299d73c226697153b7f6e">
compiler/GHC/Tc/Utils/Instantiate.hs
</a>
</li>
<li class="file-stats">
<a href="#94c96afe1bb3b771ffbcfeeca34ce43ebbe76ccb">
compiler/GHC/Tc/Utils/TcMType.hs
</a>
</li>
<li class="file-stats">
<a href="#5461e7beeb7ae73d7c01f720cbaa3fa2c5333590">
compiler/GHC/Tc/Utils/TcType.hs
</a>
</li>
<li class="file-stats">
<a href="#74295edeac870ee7f2f3484ebaffab5c948b735a">
compiler/GHC/Tc/Utils/Unify.hs
</a>
</li>
<li class="file-stats">
<a href="#5dac619989e8509003cf7b463c100f5cc56072a3">
compiler/GHC/Types/Var.hs
</a>
</li>
<li class="file-stats">
<a href="#ba46bd829178a72d0bed79785c4b01f2100a2627">
libraries/base/tests/T23454.stderr
</a>
</li>
<li class="file-stats">
<a href="#3ca27cc2325d52fbdd1e65c80ed3c29c8ab928d3">
testsuite/tests/ado/T16135.stderr
</a>
</li>
<li class="file-stats">
<a href="#504913e48308f3fab29fe3ef3b1183c50bf61e4f">
testsuite/tests/ado/ado005.stderr
</a>
</li>
<li class="file-stats">
<a href="#3ecd9bc0a79ef9f5a6ea7bd1125c45e3a732aa88">
testsuite/tests/arrows/should_fail/T20768_arrow_fail.stderr
</a>
</li>
<li class="file-stats">
<a href="#cb12908396cd93054f5d2978acef823e6aa0defc">
testsuite/tests/arrows/should_fail/T5380.stderr
</a>
</li>
<li class="file-stats">
<a href="#b3879bee5dd1dacba982f8ff2e378bc689682a8c">
testsuite/tests/backpack/should_fail/bkpfail24.stderr
</a>
</li>
<li class="file-stats">
<a href="#94eba70c4721776f0a90f1a05ea79b601dc5beb0">
testsuite/tests/backpack/should_fail/bkpfail44.stderr
</a>
</li>
<li class="file-stats">
<a href="#b15e880dcff8e788f7430dceda47a945f599bae5">
testsuite/tests/dependent/should_fail/T14066d.stderr
</a>
</li>
<li class="file-stats">
<a href="#3a3191d9f091d02c92fd2912102449b4d22ac948">
testsuite/tests/dependent/should_fail/T14066e.stderr
</a>
</li>
<li class="file-stats">
<a href="#dd371ae45162f3f6617b7e72b34b8b1c7733743f">
testsuite/tests/gadt/T3169.stderr
</a>
</li>
<li class="file-stats">
<a href="#66e3bba8f156b0529577a2290cdb25f21ce51989">
testsuite/tests/gadt/T7558.stderr
</a>
</li>
<li class="file-stats">
<a href="#4c40f357f1ae275f386a9fcd9c9d27e9a069afa9">
testsuite/tests/gadt/rw.stderr
</a>
</li>
<li class="file-stats">
<a href="#f67e47cfa1cd221962288be2411ad9e8d3482cda">
testsuite/tests/ghci/scripts/Defer02.stderr
</a>
</li>
<li class="file-stats">
<a href="#e408ede0ba572138996183f275e280adf0960a11">
testsuite/tests/indexed-types/should_compile/PushedInAsGivens.stderr
</a>
</li>
<li class="file-stats">
<a href="#a4defd4d1af6aa5f7c9167e34da01ad29baffe09">
testsuite/tests/indexed-types/should_compile/Simple14.stderr
</a>
</li>
<li class="file-stats">
<a href="#31ef515d72b01648dccfb8b9a34cbf7286115a3a">
testsuite/tests/indexed-types/should_compile/T15322a.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: #737278;">

<br>
<a href="https://gitlab.haskell.org/ghc/ghc/-/compare/64112a492e1ea6e6282695991df1ad48edd90f8f...1b53bd98d10e731c11446e80bf6dce5f94bde860">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">gitlab.haskell.org</a>. <a href="https://gitlab.haskell.org/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> · <a href="https://gitlab.haskell.org/help" target="_blank" rel="noopener noreferrer" class="help-link">Help</a>



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