diff options
author | Simon Jakobi <simon.jakobi@gmail.com> | 2018-04-05 00:00:25 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-04-07 13:30:15 -0400 |
commit | a5bfb7e143d826db310f5c632a90d39de62c7aa3 (patch) | |
tree | e54ee806478dcedb8a34dc94a04397bd7aa66741 | |
parent | 605ae8dd28ef71f13d0e5346b8798a6c41c459d0 (diff) | |
download | haskell-a5bfb7e143d826db310f5c632a90d39de62c7aa3.tar.gz |
CoreUtils.filterAlts: Correct docs
`refineDefaultAlt` takes care of refining the default alt these days.
-rw-r--r-- | compiler/coreSyn/CoreUtils.hs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/coreSyn/CoreUtils.hs b/compiler/coreSyn/CoreUtils.hs index 792da99f38..3c5cb3455e 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, |