[GHC] #15624: defer-type-errors and equality constraints

GHC ghc-devs at haskell.org
Mon Sep 10 18:56:39 UTC 2018


#15624: defer-type-errors and equality constraints
-------------------------------------+-------------------------------------
           Reporter:  monoidal       |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  low            |         Milestone:  8.8.1
          Component:  Compiler       |           Version:  8.4.3
  (Type checker)                     |
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 Consider

 {{{
 {-# OPTIONS_GHC -fdefer-type-errors #-}
 x = const True ('a' + 'a')
 y = const True (not 'a')
 }}}

 Currently `x` is True, but `y` is undefined. I think it would make sense
 for both to be True.

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


More information about the ghc-tickets mailing list