<!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, "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, -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, -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: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/593218794199e23cdfc1a94200cbb9f404e28720">59321879</a></strong>
<div>
<span> by Sylvain Henry </span> <i> at 2023-04-13T08:50:33-04:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.875rem; color: #333238; position: relative; font-family: var(--default-mono-font, "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;'>Add quotRem rules (#22152)

  case quotRemInt# x y of
     (# q, _ #) -> body
  ====>
   case quotInt# x y of
     q -> body

  case quotRemInt# x y of
     (# _, r #) -> body
  ====>
   case remInt# x y of
     r -> body
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/4dd021227559e1bc70cdaed12e45ff5459c33d27">4dd02122</a></strong>
<div>
<span> by Sylvain Henry </span> <i> at 2023-04-13T08:50:33-04:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.875rem; color: #333238; position: relative; font-family: var(--default-mono-font, "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;'>Add quot folding rule (#22152)

   (x / l1) / l2
   l1 and l2 /= 0
   l1*l2 doesn't overflow
   ==> x / (l1 * l2)
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/1148ac723d6a879593dc4e7941a49b8e74e4c7d7">1148ac72</a></strong>
<div>
<span> by Sylvain Henry </span> <i> at 2023-04-13T08:50:33-04:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.875rem; color: #333238; position: relative; font-family: var(--default-mono-font, "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;'>Make Int64/Word64 division ok for speculation too.

Only when the divisor is definitely non-zero.
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/8af401ccfbe28d7bbfc493c0097834e9c66a36b0">8af401cc</a></strong>
<div>
<span> by Sylvain Henry </span> <i> at 2023-04-13T08:50:33-04:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.875rem; color: #333238; position: relative; font-family: var(--default-mono-font, "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;'>Make WordQuotRem2Op ok-for-speculation too
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/27d2978e5412f2bef4448e208182a03137dd5ee8">27d2978e</a></strong>
<div>
<span> by Josh Meredith </span> <i> at 2023-04-13T08:51:09-04:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.875rem; color: #333238; position: relative; font-family: var(--default-mono-font, "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;'>Base/JS: GHC.JS.Foreign.Callback module (issue 23126)

* Add the Callback module for "exporting" Haskell functions
to be available to plain JavaScript code

* Fix some primitives defined in GHC.JS.Prim

* Add a JavaScript section to the user guide with instructions
on how to use the JavaScript FFI, building up to using Callbacks
to interact with the browser

* Add tests for the JavaScript FFI and Callbacks
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/18a451d21c4deed2dd7c6601bc038da50f2fdb8a">18a451d2</a></strong>
<div>
<span> by Adam Sandberg Ericsson </span> <i> at 2023-04-13T19:56:59-04:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.875rem; color: #333238; position: relative; font-family: var(--default-mono-font, "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;'>rts: improve memory ordering and add some comments in the StablePtr implementation
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/6813e72540043bc52fa86e66e916f4e911682728">6813e725</a></strong>
<div>
<span> by Matthew Pickering </span> <i> at 2023-04-13T19:57:00-04:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.875rem; color: #333238; position: relative; font-family: var(--default-mono-font, "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;'>docs: Generate docs/index.html with version number

* Generate docs/index.html to include the version of the ghc library

* This also fixes the packageVersions interpolations which were
  - Missing an interpolation for `LIBRARY_ghc_VERSION`
  - Double quoting the version so that "9.7" was being inserted.

Fixes #23121
</pre>
</li>
</ul>
<h4 style="margin-top: 10px; margin-bottom: 10px;">
30 changed files:
</h4>
<ul>
<li class="file-stats">
<a href="#a1519b7fe8a0d4b42e4aaa927fb6ab5b5da0fcdd">
compiler/GHC/Builtin/PrimOps.hs
</a>
</li>
<li class="file-stats">
<a href="#aa79261abf782f3dc603af7fbd5c4b08ed3ddb88">
compiler/GHC/Core/Opt/ConstantFold.hs
</a>
</li>
<li class="file-stats">
<a href="#ae6d91a5d028418bbf1431347d659e744e0a3128">
compiler/GHC/Core/Opt/Simplify/Iteration.hs
</a>
</li>
<li class="file-stats">
<a href="#1a7aba0daeafab195716dd25432479804a55ab60">
compiler/GHC/Core/Utils.hs
</a>
</li>
<li class="file-stats">
<a href="#ee98f016857ad5548bb7cdc5dd85246585acdfd6">
compiler/GHC/Types/Literal.hs
</a>
</li>
<li class="file-stats">
<a href="#43e55b36c46cc29df237ddaadde0b3cf4db94fb2">
docs/index.html

docs/index.html.in
</a>
</li>
<li class="file-stats">
<a href="#082864ead1e9d9b4924371eb7fb80f80a61c4a76">
docs/users_guide/index.rst
</a>
</li>
<li class="file-stats">
<a href="#2e618736b8ffd36f960b8706c688a29a804355e4">
<span class="new-file">
+
docs/users_guide/javascript.rst
</span>
</a>
</li>
<li class="file-stats">
<a href="#6c93025dd021b74dda705f36d078e02bcda0ccfe">
hadrian/src/Rules/Documentation.hs
</a>
</li>
<li class="file-stats">
<a href="#2d11d70063aa1378e9323caad80c7d9116ef4520">
hadrian/src/Rules/Generate.hs
</a>
</li>
<li class="file-stats">
<a href="#adfe0932bb4925ee051b5be17179b13e60491e62">
<span class="new-file">
+
libraries/base/GHC/JS/Foreign/Callback.hs
</span>
</a>
</li>
<li class="file-stats">
<a href="#6e30943058797b27c3a34c8c4788217643d72834">
libraries/base/GHC/JS/Prim.hs
</a>
</li>
<li class="file-stats">
<a href="#b7cfb47853ef95330e499ca0c5b90964744d101f">
libraries/base/base.cabal
</a>
</li>
<li class="file-stats">
<a href="#264b041893a19041ac2281341c74847243da87e3">
rts/StablePtr.c
</a>
</li>
<li class="file-stats">
<a href="#33ac75d40491b739db59511f0dc29a37c1edd461">
testsuite/tests/javascript/all.T
</a>
</li>
<li class="file-stats">
<a href="#a4123f09f1cfa4422affa762b7277727928bd05d">
<span class="new-file">
+
testsuite/tests/javascript/js-callback01.hs
</span>
</a>
</li>
<li class="file-stats">
<a href="#fa0ad4831354f76d16084ed66b418ad25e3ba0d0">
<span class="new-file">
+
testsuite/tests/javascript/js-callback01.stdout
</span>
</a>
</li>
<li class="file-stats">
<a href="#afe263f38ea9d5f70cacb7485579df7915b3c374">
<span class="new-file">
+
testsuite/tests/javascript/js-callback02.hs
</span>
</a>
</li>
<li class="file-stats">
<a href="#33f659109c1ba5aabfa44a5ac0bc3d7d79c0c6db">
<span class="new-file">
+
testsuite/tests/javascript/js-callback02.stdout
</span>
</a>
</li>
<li class="file-stats">
<a href="#7ef8459a33f39046f56091822779d1836f0997a5">
<span class="new-file">
+
testsuite/tests/javascript/js-callback03.hs
</span>
</a>
</li>
<li class="file-stats">
<a href="#67d9d04763575624f006cd0100fa2d56515abebd">
<span class="new-file">
+
testsuite/tests/javascript/js-callback03.stdout
</span>
</a>
</li>
<li class="file-stats">
<a href="#d701b893fc7d19ecc82d5c52a6bd00082e9cc7f0">
<span class="new-file">
+
testsuite/tests/javascript/js-callback04.hs
</span>
</a>
</li>
<li class="file-stats">
<a href="#842984810890bb099b2ddf3c683ce45b9a38046a">
<span class="new-file">
+
testsuite/tests/javascript/js-callback04.stdout
</span>
</a>
</li>
<li class="file-stats">
<a href="#029c4bd8f9d0664b5182ae341e08631580dfa686">
<span class="new-file">
+
testsuite/tests/javascript/js-callback05.hs
</span>
</a>
</li>
<li class="file-stats">
<a href="#d57622e0addf69d00ad4160608e4655c81f1c649">
<span class="new-file">
+
testsuite/tests/javascript/js-callback05.stdout
</span>
</a>
</li>
<li class="file-stats">
<a href="#5cb5768a998fcd69f63877b2a59b50c454fb58c2">
<span class="new-file">
+
testsuite/tests/javascript/js-ffi-array.hs
</span>
</a>
</li>
<li class="file-stats">
<a href="#59057df42e857994b71c0a5d8ea24311e159638c">
<span class="new-file">
+
testsuite/tests/javascript/js-ffi-array.stdout
</span>
</a>
</li>
<li class="file-stats">
<a href="#e7029bf63b1f02aab173f86f7e7c0148cbc6ed32">
<span class="new-file">
+
testsuite/tests/javascript/js-ffi-int.hs
</span>
</a>
</li>
<li class="file-stats">
<a href="#961d2466423f69ff9f875c235a06cf86d33c422b">
<span class="new-file">
+
testsuite/tests/javascript/js-ffi-int.stdout
</span>
</a>
</li>
<li class="file-stats">
<a href="#fead1491e70d28789cf9b8de110ddec157472e87">
<span class="new-file">
+
testsuite/tests/javascript/js-ffi-isNull.hs
</span>
</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/f435268da08a9f6f4c0ec7581755ff48f9044327...6813e72540043bc52fa86e66e916f4e911682728">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>