[GHC] #7881: Warning for pointless ranges like [5..2]

GHC ghc-devs at haskell.org
Sat Oct 3 18:44:53 UTC 2015


#7881: Warning for pointless ranges like [5..2]
-------------------------------------+---------------------------------
        Reporter:  mpe               |         Owner:
            Type:  feature request   |        Status:  closed
        Priority:  normal            |     Milestone:  7.8.1
       Component:  Compiler          |       Version:  7.6.3
      Resolution:  fixed             |      Keywords:  beginner,warning
Operating System:  Unknown/Multiple  |  Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |     Test Case:
      Blocked By:                    |      Blocking:
 Related Tickets:                    |
-------------------------------------+---------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"0eb8fcd94b29ee9997b386e64203037bdf2aaa04/ghc"
 0eb8fcd9/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="0eb8fcd94b29ee9997b386e64203037bdf2aaa04"
 Enable `Enumeration is empty` warnings for `Integer`

 This warning was implemented via
 abb3a9faa88fad3562ac41a148dd683765f47565 for addressing #7881. The
 bounded H2010 integral types were handled, but the `Integer` type was
 missed for the enumeration warning.

 Fixes #10929

 Test Plan: reused T7881 testcase

 Reviewers: thomie, bgamari, austin

 Reviewed By: thomie, bgamari, austin

 Subscribers: thomie

 Differential Revision: https://phabricator.haskell.org/D1305

 GHC Trac Issues: #10929
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/7881#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list