[GHC] #9182: Empty case analysis for function clauses

GHC ghc-devs at haskell.org
Sat Jun 7 21:50:47 UTC 2014


#9182: Empty case analysis for function clauses
-------------------------------------+------------------------------------
        Reporter:  dfranke           |            Owner:
            Type:  feature request   |           Status:  new
        Priority:  low               |        Milestone:
       Component:  Compiler          |          Version:  7.8.2
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by nomeata):

 Tricky. I believe the `The type signature for ‘empty’ lacks an
 accompanying binding.` message is emitted early, possibly during renaming,
 when there is no way to know that `Empty` is empty. Or are you suggesting
 to disable this error message completely when `EmptyCase` is active?

 And what’s wrong with writing `empty x = case x of { }`?

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


More information about the ghc-tickets mailing list