[GHC] #15558: Locally handling an empty constraint

GHC ghc-devs at haskell.org
Wed Aug 22 22:32:06 UTC 2018


#15558: Locally handling an empty constraint
-------------------------------------+-------------------------------------
        Reporter:  Ericson2314       |                Owner:  (none)
            Type:  task              |               Status:  new
        Priority:  normal            |            Milestone:  ⊥
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  error/warning at compile-time      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ashley Yakeley):

 Hmm, this seemed to work with 8.4.3:

 {{{
 bar :: Bar Int
 bar = Bar 0 undefined

 g' = \case
   X -> bar
   Y -> Bar [] False
 }}}

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


More information about the ghc-tickets mailing list