[Git][ghc/ghc][wip/pmcheck-release-notes-8.12] Release Notes: Add news from the pattern-match checker [skip ci]

Sebastian Graf gitlab at gitlab.haskell.org
Thu Jun 11 08:37:45 UTC 2020



Sebastian Graf pushed to branch wip/pmcheck-release-notes-8.12 at Glasgow Haskell Compiler / GHC


Commits:
4c7e9689 by Sebastian Graf at 2020-06-11T10:37:38+02:00
Release Notes: Add news from the pattern-match checker [skip ci]

- - - - -


1 changed file:

- docs/users_guide/8.12.1-notes.rst


Changes:

=====================================
docs/users_guide/8.12.1-notes.rst
=====================================
@@ -19,6 +19,19 @@ Highlights
     In the mean this improved runtime by about 0.8%. For details
     see ticket :ghc-ticket:`17823`.
 
+* Pattern-Match Coverage Checking
+
+  - The revamp of the pattern-match coverage checker that started in 8.10 concludes with this release and implements the 
+    novel `*Lower Your Guards* <https://www.microsoft.com/en-us/research/uploads/prod/2020/03/lyg.pdf>`_ algorithm.
+  - Compared to 8.10, end users might notice improvements to "long-distance information": :: haskell
+
+      :linenos:   
+      f True = 1
+      f x    = ... case x of { False -> 2; True -> 3 } ...
+
+    GHC is now able to detect the case alt returning 3 as redundant.
+  - Some more performance improvements in edge cases.
+
 Full details
 ------------
 



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4c7e9689f6fcc3eb974f0a76ae8078abda30026d

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4c7e9689f6fcc3eb974f0a76ae8078abda30026d
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200611/f73c768f/attachment.html>


More information about the ghc-commits mailing list