[GHC] #3651: GADT type checking too liberal

GHC trac at galois.com
Fri Nov 20 15:35:52 EST 2009


#3651: GADT type checking too liberal
--------------------------------------+-------------------------------------
  Reporter:  MartijnVanSteenbergen    |          Owner:                  
      Type:  bug                      |         Status:  new             
  Priority:  normal                   |      Milestone:  6.14.1          
 Component:  Compiler (Type checker)  |        Version:  6.10.4          
Resolution:                           |       Keywords:                  
Difficulty:                           |             Os:  Unknown/Multiple
  Testcase:                           |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown             |  
--------------------------------------+-------------------------------------
Changes (by igloo):

  * difficulty:  =>
  * failure:  => None/Unknown
  * milestone:  => 6.14.1

Comment:

 These are all accepted in 6.12 and HEAD too, but trying to call any of
 them with arguments B and U fails:
 {{{
 Couldn't match expected type `Bool' against inferred type `()'
 }}}
 I'm not sure if that's the expected behaviour or not.

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


More information about the Glasgow-haskell-bugs mailing list