#5917: Don't defer type errors when evaluating a GHCi expression
-------------------------------+--------------------------------------------
  Reporter:  parcs             |          Owner:                  
      Type:  feature request   |         Status:  closed          
  Priority:  normal            |      Milestone:                  
 Component:  GHCi              |        Version:  7.5             
Resolution:  fixed             |       Keywords:                  
        Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown      |     Difficulty:  Unknown         
  Testcase:                    |      Blockedby:                  
  Blocking:                    |        Related:                  
-------------------------------+--------------------------------------------
Changes (by simonpj):

  * status:  new => closed
  * difficulty:  => Unknown
  * resolution:  => fixed


Comment:

 Good idea thanks
 {{{
 commit 301a718b8f9dd50d91bd03bbd2c3efa28ad203fd
 Author: Patrick Palka <[email protected]>
 Date:   Tue Mar 6 19:27:40 2012 -0500

     Don't defer type errors when evaluating a GHCi expression

     It is unhelpful here because the expression will get evaluated right
     away anyway, thus emitting a redundant warning followed by an
 equivalent
     runtime exception. If the expression were an ill-typed pure
 expression,
     _three_ equivalent type errors would get emitted (due to the two-phase
     typechecking done in 'Plan C')
 }}}

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to