[GHC] #13021: Inaccessible RHS warning is confusing for users

GHC ghc-devs at haskell.org
Fri Dec 23 19:55:12 UTC 2016


#13021: Inaccessible RHS warning is confusing for users
-------------------------------------+-------------------------------------
        Reporter:  mpickering        |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
                                     |  PatternMatchWarnings
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by goldfire):

 I'm with @rwbarton. The fact that `B` is `COMPLETE` in comment:5 does not
 make the first match redundant or inaccessible. His suggestion to consider
 `pattern B <- _` (which is indeed a complete pattern) is instructive.

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


More information about the ghc-tickets mailing list