<!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>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<h3>
Vladislav Zavialov pushed to branch wip/negative-literals
at <a href="https://gitlab.haskell.org/ghc/ghc">Glasgow Haskell Compiler / GHC</a>
</h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/44d6a3352d708785b75aeb616bfc7efff839184e">44d6a335</a></strong>
<div>
<span>by Andreas Klebinger</span>
<i>at 2020-07-02T02:54:54-04:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">T16012: Be verbose on failure.
</pre>
</li>
<li>
<strong><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/f985333002c1690bf49debcc64fc65ed1d1de244">f9853330</a></strong>
<div>
<span>by Ryan Scott</span>
<i>at 2020-07-02T02:55:29-04:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">Bump ghc-prim version to 0.7.0

Fixes #18279. Bumps the `text` submodule.
</pre>
</li>
<li>
<strong><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/37a35038a961a3051c549d4aecc4e94588c354e5">37a35038</a></strong>
<div>
<span>by Vladislav Zavialov</span>
<i>at 2020-07-02T12:20:32+03:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">Improve NegativeLiterals (#18022, GHC Proposal #344)

Before this patch, NegativeLiterals used to parse x-1 as x (-1).

This may not be what the user expects, and now it is fixed:
x-1 is parsed as (-) x 1.

We achieve this by the following requirement:

  * When lexing a negative literal,
    it must not be preceded by a 'closing token'.

This also applies to unboxed literals, e.g. -1#.

See GHC Proposal #229 for the definition of a closing token.
</pre>
</li>
</ul>
<h4>30 changed files:</h4>
<ul>
<li class="file-stats">
<a href="#a1ae0a1be35c859d90b0756920a7198075fb91e1">
compiler/GHC/Parser/Lexer.x
</a>
</li>
<li class="file-stats">
<a href="#afc5c9567f619749d27f89c5904b2eb41814069c">
docs/users_guide/exts/negative_literals.rst
</a>
</li>
<li class="file-stats">
<a href="#51d77a90635e9ec3ddfb3918005aecda9cc567c0">
ghc/ghc-bin.cabal.in
</a>
</li>
<li class="file-stats">
<a href="#b7cfb47853ef95330e499ca0c5b90964744d101f">
libraries/base/base.cabal
</a>
</li>
<li class="file-stats">
<a href="#a1ce081961c47b863a6a6295362b247f56218cbf">
libraries/ghc-bignum/ghc-bignum.cabal
</a>
</li>
<li class="file-stats">
<a href="#2682fdbef3edef70800400cfe329cc02ca310b37">
libraries/ghc-compact/ghc-compact.cabal
</a>
</li>
<li class="file-stats">
<a href="#ac19c930d4b92f05bf72d56e69051aa9dda768d3">
libraries/ghc-heap/ghc-heap.cabal.in
</a>
</li>
<li class="file-stats">
<a href="#4c196af54dc163066e3b52830ae884ffb25798be">
libraries/ghc-prim/ghc-prim.cabal
</a>
</li>
<li class="file-stats">
<a href="#2d19e6cbace295d14f756857b7a73e885bca99f3">
libraries/text
</a>
</li>
<li class="file-stats">
<a href="#329221eac9da3f4bdd5a15b0bd5d952fd347654e">
testsuite/tests/ado/ado004.stderr
</a>
</li>
<li class="file-stats">
<a href="#85b94a376012804e964b2a2e709e57e559ec3852">
testsuite/tests/backpack/should_compile/bkp16.stderr
</a>
</li>
<li class="file-stats">
<a href="#3d73b65e1c8ad984cdbd7ee6239a93445adfe908">
testsuite/tests/dependent/should_compile/T14729.stderr
</a>
</li>
<li class="file-stats">
<a href="#6ac05666ff2f3446a74d97f4b732a0e201b97f1f">
testsuite/tests/dependent/should_compile/T15743.stderr
</a>
</li>
<li class="file-stats">
<a href="#98e2fc9b0cfb5c23d47243169cf8a81e1d3c3618">
testsuite/tests/dependent/should_compile/T15743e.stderr
</a>
</li>
<li class="file-stats">
<a href="#e8202592b814aada9cf42118076ef6366c681c4e">
testsuite/tests/determinism/determ021/determ021.stdout
</a>
</li>
<li class="file-stats">
<a href="#dcd2320771f797ad2294c8ac525461c757e69977">
testsuite/tests/driver/json2.stderr
</a>
</li>
<li class="file-stats">
<a href="#84f6654de7f7b67ecc9f7ed29a0e4a7a4a3ff78a">
testsuite/tests/ghci/should_run/T16012.script
</a>
</li>
<li class="file-stats">
<a href="#b06ffdf124ec81fadade4b5d522e502283f8753b">
testsuite/tests/ghci/should_run/T16012.stdout
</a>
</li>
<li class="file-stats">
<a href="#cf81670e367d51a4cdde298e0f4f93a97d80b5d7">
testsuite/tests/indexed-types/should_compile/T15711.stderr
</a>
</li>
<li class="file-stats">
<a href="#008db6c67c7143d8f84efd2ccc9c4a043dc45daa">
testsuite/tests/indexed-types/should_compile/T15852.stderr
</a>
</li>
<li class="file-stats">
<a href="#733ad15d8b0a0fe6f5fea5cd26d06e80047ed0b7">
testsuite/tests/indexed-types/should_compile/T3017.stderr
</a>
</li>
<li class="file-stats">
<a href="#b800f96dc5df3e1c1ad35199012912cd86e63cd9">
<span class="deleted-file">

testsuite/tests/parser/should_compile/LexNegVsNegLit.hs
</span>
</a>
</li>
<li class="file-stats">
<a href="#04eff5dcb285b3a606ab496f176ef502f171f133">
<span class="new-file">
+
testsuite/tests/parser/should_compile/NegativeLiterals.hs
</span>
</a>
</li>
<li class="file-stats">
<a href="#a43397658ba43ce6747320867b3a0330bcea2ea5">
testsuite/tests/parser/should_compile/all.T
</a>
</li>
<li class="file-stats">
<a href="#37fa58e88c81ecb6b7e265a0c1928c84a78bb2d0">
testsuite/tests/partial-sigs/should_compile/ADT.stderr
</a>
</li>
<li class="file-stats">
<a href="#1e4da4c9d34a4857465500cb6bb45de5d1ff825a">
testsuite/tests/partial-sigs/should_compile/AddAndOr1.stderr
</a>
</li>
<li class="file-stats">
<a href="#908afe654232f7af50326fe0d0fe8d0bff9761dd">
testsuite/tests/partial-sigs/should_compile/AddAndOr2.stderr
</a>
</li>
<li class="file-stats">
<a href="#d1ef7e829a5c941697f80ec13e7e26057818abc0">
testsuite/tests/partial-sigs/should_compile/AddAndOr3.stderr
</a>
</li>
<li class="file-stats">
<a href="#dae118374f79b37d0353049fb179965f7d9eedec">
testsuite/tests/partial-sigs/should_compile/AddAndOr4.stderr
</a>
</li>
<li class="file-stats">
<a href="#d619568faa0b74584a05f3ef31ad8dd38bf366bf">
testsuite/tests/partial-sigs/should_compile/AddAndOr5.stderr
</a>
</li>
</ul>
<h5>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: #777;">

<br>
<a href="https://gitlab.haskell.org/ghc/ghc/-/compare/9134795d1c40423ce4a0a3c9dedab510ced79955...37a35038a961a3051c549d4aecc4e94588c354e5">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.haskell.org.
If you'd like to receive fewer emails, you can
adjust your notification settings.



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