[commit: ghc] master: CoreUtils.filterAlts: Correct docs (a5bfb7e)

git at git.haskell.org git at git.haskell.org
Sat Apr 7 19:45:28 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/a5bfb7e143d826db310f5c632a90d39de62c7aa3/ghc

>---------------------------------------------------------------

commit a5bfb7e143d826db310f5c632a90d39de62c7aa3
Author: Simon Jakobi <simon.jakobi at gmail.com>
Date:   Thu Apr 5 00:00:25 2018 +0200

    CoreUtils.filterAlts: Correct docs
    
    `refineDefaultAlt` takes care of refining the default alt these days.


>---------------------------------------------------------------

a5bfb7e143d826db310f5c632a90d39de62c7aa3
 compiler/coreSyn/CoreUtils.hs | 2 --
 1 file changed, 2 deletions(-)

diff --git a/compiler/coreSyn/CoreUtils.hs b/compiler/coreSyn/CoreUtils.hs
index 792da99..3c5cb34 100644
--- a/compiler/coreSyn/CoreUtils.hs
+++ b/compiler/coreSyn/CoreUtils.hs
@@ -614,8 +614,6 @@ filterAlts :: TyCon                -- ^ Type constructor of scrutinee's type (us
              --  2. The new alternatives, trimmed by
              --        a) remove imposs_cons
              --        b) remove constructors which can't match because of GADTs
-             --      and with the DEFAULT expanded to a DataAlt if there is exactly
-             --      remaining constructor that can match
              --
              -- NB: the final list of alternatives may be empty:
              -- This is a tricky corner case.  If the data type has no constructors,



More information about the ghc-commits mailing list