<!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: .875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px;
}
body {
font-family: "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,.01) 0 0 1px; font-family: "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;">
Marge Bot pushed to branch wip/marge_bot_batch_merge_job 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: 600;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/2d62b970b79b61138bca678761cc745911d9125d">2d62b970</a></strong>
<div>
<span> by Mike Pilgrem </span> <i> at 2025-01-13T12:59:10-05:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 14px; color: #28272d; position: relative; font-family: "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;'>Re CLC #300 - Specify fmap for NonEmpty as map
See:
* https://github.com/haskell/core-libraries-committee/issues/300
Seeks to:
* move existing instances for NonEmpty (except of Eq and Ord) out of GHC.Internal.Base into new GHC.Internal.Data.NonEmpty (to avoid otherwise unavoidable cycles in the module graph);
* move map out of Data.List.NonEmpty (base package) into GHC.Internal.Data.NonEmpty;
* define fmap as map for NonEmpty instance of Functor, avoiding code duplication;
* re-export map from existing GHC.Internal.Data.List.NonEmpty; and
* re-export map from Data.List.NonEmpty (base package);
without breaking anything in the GHC repository.
Various tests *.stdout and *.stderr files are amended also.
</pre>
</li>
<li>
<strong style="font-weight: 600;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/ab3ab3e3d489a351e84f4fe681de1731549376a2">ab3ab3e3</a></strong>
<div>
<span> by Luite Stegeman </span> <i> at 2025-01-13T12:59:58-05:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 14px; color: #28272d; position: relative; font-family: "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;'>compiler/coreprep: Turn off dictionary speculation by default
Speculative evaluation can cause performance regressions,
therefore we turn it off by default. It can be enabled again
with the -fspec-eval-dictfun flag
See #25284
</pre>
</li>
<li>
<strong style="font-weight: 600;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/3d9cacd5b09019c4ce2ccea9a509220bb44e36a2">3d9cacd5</a></strong>
<div>
<span> by Patrick </span> <i> at 2025-01-14T02:34:46+08:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 14px; color: #28272d; position: relative; font-family: "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;'>Enhance kind inference for data family instances
This commit improves kind inference for data family instances by kind-checking
the constructors, for H98 and newtype declarations (ONLY), as well as
kind-checking the result kind signature (when using GADT syntax).
This fixes #25611.
Typechecker changes:
In `tcDataFamInstHeader`, we now kind-check the constructors using
`kcConDecls`, for H98-style decls and newtype decls ONLY.
See Note [Kind inference for data family instances].
Testsuite changes:
- The T25611{a,b,c,d} tests test the new kind inference implementation.
- a,b: infer result kind from constructors (H98 case)
- c: renamed version of test UnliftedNewtypesUnassociatedFamilyFail,
which now passes
- d: GADT case, checking that we don't infer overly rigid kinds when
kind-checking the constructors in data family instances.
- DataInstanceKindsDefaults tests defaulting data instance kinds
without UnliftedNewtypes or UnliftedDatatypes, as outlined in
Note [Defaulting result kind of newtype/data family instance].
Also a few notes are updated to reflect the changes.
Co-authored-by: default avatarSimon Peyton Jones <simon.peytonjones@gmail.com>
</pre>
</li>
<li>
<strong style="font-weight: 600;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/1f2c72de016016a10ecd85e8a1df3fa0d84d24cd">1f2c72de</a></strong>
<div>
<span> by amesgen </span> <i> at 2025-01-15T13:26:30-05:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 14px; color: #28272d; position: relative; font-family: "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;'>wasm: prevent bundlers from resolving import("node:timers")
This fixes the following esbuild error:
✘ [ERROR] Could not resolve "node:timers"
www/ghc_wasm_jsffi.js:66:25:
66 │ return (await import("node:timers")).setImmediate;
╵ ~~~~~~~~~~~~~
The package "node:timers" wasn't found on the file system but is built into node. Are you trying
to bundle for node? You can use "--platform=node" to do that, which will remove this error.
Previously (i.e. after !13503), one had to work around this by passing
`--external:node:timers`.
</pre>
</li>
</ul>
<h4 style="margin-top: 10px; margin-bottom: 10px;">
30 changed files:
</h4>
<ul>
<li class="file-stats">
<a href="#a5d27de4e3111a69f69902c65ecf7b3379f7c49a">
compiler/GHC/CoreToStg/Prep.hs
</a>
</li>
<li class="file-stats">
<a href="#e65e7bbfc24f8830a20082bfc50f6d16e613cbeb">
compiler/GHC/Driver/DynFlags.hs
</a>
</li>
<li class="file-stats">
<a href="#9355bef855426caf5f526925edf351b20f9a86c4">
compiler/GHC/Tc/Gen/HsType.hs
</a>
</li>
<li class="file-stats">
<a href="#83d23a46bb6cdc8b1edc16f1fd2c8f5c53e2c9ca">
compiler/GHC/Tc/TyCl.hs
</a>
</li>
<li class="file-stats">
<a href="#e63425e031ffe9350ee6b1687e506aaea75d11e1">
compiler/GHC/Tc/TyCl/Instance.hs
</a>
</li>
<li class="file-stats">
<a href="#2e45f2cd303dd998950a7c8042e796a5b2abd64f">
docs/users_guide/using-optimisation.rst
</a>
</li>
<li class="file-stats">
<a href="#392e9dfd3417e267d708c5ab16536f2994d43745">
libraries/base/changelog.md
</a>
</li>
<li class="file-stats">
<a href="#bb99dcdd1145e72572944a803ab3b333da8a2489">
libraries/base/src/Data/List/NonEmpty.hs
</a>
</li>
<li class="file-stats">
<a href="#68d643353c591e76c6239dd2abb39123dbc1ad3c">
libraries/base/src/Data/Semigroup.hs
</a>
</li>
<li class="file-stats">
<a href="#658fa064028089d13fd5ed47614667aef36cd7a8">
libraries/base/src/GHC/Base.hs
</a>
</li>
<li class="file-stats">
<a href="#463c72332b99752eebac4f2f2744351289121f2d">
libraries/ghc-internal/ghc-internal.cabal.in
</a>
</li>
<li class="file-stats">
<a href="#ba249a32ecf4af1ebf439d603c59e49a4ff5d604">
libraries/ghc-internal/src/GHC/Internal/Base.hs
</a>
</li>
<li class="file-stats">
<a href="#a2dc3f40a1ee876db464c111a95d3b64583d9272">
libraries/ghc-internal/src/GHC/Internal/Control/Monad/Fix.hs
</a>
</li>
<li class="file-stats">
<a href="#b34aba3c50cb371d5ea0121337be127022149660">
libraries/ghc-internal/src/GHC/Internal/Control/Monad/Zip.hs
</a>
</li>
<li class="file-stats">
<a href="#fc3bd5253b4462a655967621fd36e0c897f9bff1">
libraries/ghc-internal/src/GHC/Internal/Data/Data.hs
</a>
</li>
<li class="file-stats">
<a href="#5deafdbd5900a62f8f5d3b24ccd1ff22a5edb1e6">
libraries/ghc-internal/src/GHC/Internal/Data/Foldable.hs
</a>
</li>
<li class="file-stats">
<a href="#798efe842aea4d8978cec65c4e5173aa30b77804">
libraries/ghc-internal/src/GHC/Internal/Data/List/NonEmpty.hs
</a>
</li>
<li class="file-stats">
<a href="#1af84773d6f1138b2cdfc756fd1da34cb14f50ce">
<span class="new-file">
+
libraries/ghc-internal/src/GHC/Internal/Data/NonEmpty.hs
</span>
</a>
</li>
<li class="file-stats">
<a href="#c2b95b2f8609a2f61babb238dafd995df8eb6d38">
libraries/ghc-internal/src/GHC/Internal/Data/Traversable.hs
</a>
</li>
<li class="file-stats">
<a href="#aa889b9768a5f02cf422645918b3aca165b8739a">
libraries/ghc-internal/src/GHC/Internal/Generics.hs
</a>
</li>
<li class="file-stats">
<a href="#000b1e763c4e401bf1b71920b9bb2a87a5f41be4">
libraries/ghc-internal/src/GHC/Internal/TH/Lib.hs
</a>
</li>
<li class="file-stats">
<a href="#7e5404c7d97337c31e50a084e8f7230c6f5eb4b5">
libraries/ghc-internal/src/GHC/Internal/TH/Lift.hs
</a>
</li>
<li class="file-stats">
<a href="#661b43655578566ae0a6ab55b6f670b1de666aa5">
libraries/ghc-internal/src/GHC/Internal/TH/Syntax.hs
</a>
</li>
<li class="file-stats">
<a href="#fdfc0f67fed47c4a09a83125fe925d928318a351">
libraries/ghc-internal/src/GHC/Internal/Text/ParserCombinators/ReadP.hs
</a>
</li>
<li class="file-stats">
<a href="#1ec2f1ba4886e7bbaa7be6882d4e4bf8ff0e8f28">
<span class="new-file">
+
testsuite/tests/indexed-types/should_compile/DataInstanceKindsDefaults.hs
</span>
</a>
</li>
<li class="file-stats">
<a href="#5ad0f4dcdcba483979682172779160f3d20f042f">
<span class="new-file">
+
testsuite/tests/indexed-types/should_compile/T25611a.hs
</span>
</a>
</li>
<li class="file-stats">
<a href="#a1f248027853d78c6da070bb1fe483da3fd9ec95">
<span class="new-file">
+
testsuite/tests/indexed-types/should_compile/T25611b.hs
</span>
</a>
</li>
<li class="file-stats">
<a href="#876eac4b1e1dc9c6699a8cd62b34f3fd49779268">
testsuite/tests/typecheck/should_fail/UnliftedNewtypesUnassociatedFamilyFail.hs
→
testsuite/tests/indexed-types/should_compile/T25611c.hs
</a>
</li>
<li class="file-stats">
<a href="#223c80c4b048b2c2b385ba76e66fa8595f24b2db">
<span class="new-file">
+
testsuite/tests/indexed-types/should_compile/T25611d.hs
</span>
</a>
</li>
<li class="file-stats">
<a href="#58b9bc2ffb1c7d7b545e6aada524a5d53266e95e">
testsuite/tests/indexed-types/should_compile/all.T
</a>
</li>
</ul>
<h5 style="margin-top: 10px; margin-bottom: 10px; font-size: .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/810bb35119a7ae69007e7f0e83810180541f0ce8...1f2c72de016016a10ecd85e8a1df3fa0d84d24cd">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>