[GHC] #11197: Overeager deferred type errors

GHC ghc-devs at haskell.org
Tue Sep 11 02:14:07 UTC 2018


#11197: Overeager deferred type errors
-------------------------------------+-------------------------------------
        Reporter:  goldfire          |                Owner:  goldfire
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.8.1
       Component:  Compiler (Type    |              Version:  7.11
  checker)                           |             Keywords:  TypeInType,
      Resolution:                    |  DeferredErrors
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):

 #15624 is another example:

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

 `x` is `True`, but `y` is `<<error>>`.

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


More information about the ghc-tickets mailing list