[GHC] #8853: Surprising mention of unboxed integers in pattern exhaustiveness warning (was: Alarming looking warning about non-exhaustive pattern)

GHC ghc-devs at haskell.org
Thu Mar 6 22:54:06 UTC 2014


#8853: Surprising mention of unboxed integers in pattern exhaustiveness warning
-------------------------------------------------+-------------------------
        Reporter:  MikolajKonarski               |            Owner:
            Type:  bug                           |           Status:  new
        Priority:  normal                        |        Milestone:
       Component:  Compiler                      |          Version:
      Resolution:                                |  7.8.1-rc2
Operating System:  Linux                         |         Keywords:
 Type of failure:  Incorrect warning at          |     Architecture:
  compile-time                                   |  x86_64 (amd64)
       Test Case:                                |       Difficulty:
        Blocking:                                |  Unknown
                                                 |       Blocked By:
                                                 |  Related Tickets:
-------------------------------------------------+-------------------------

Comment (by nomeata):

 > To be clear, the error message is alarming because it refers to unboxed
 integers, but the source code does not.

 Ok, that was my guess as well, adjusting ticket title (unfortunately, I
 can’t change the ticket body to remove the distracting runtime output).

 I agree that the compiler would ideally not talk about unboxed integers if
 the code is not.

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


More information about the ghc-tickets mailing list