#6159: unexpected GADT kind error
----------------------------------------+-----------------------------------
  Reporter:  kosmikus                   |          Owner:                  
      Type:  bug                        |         Status:  closed          
  Priority:  normal                     |      Milestone:                  
 Component:  Compiler                   |        Version:  7.5             
Resolution:  invalid                    |       Keywords:                  
        Os:  Unknown/Multiple           |   Architecture:  Unknown/Multiple
   Failure:  GHC rejects valid program  |     Difficulty:  Unknown         
  Testcase:                             |      Blockedby:                  
  Blocking:                             |        Related:                  
----------------------------------------+-----------------------------------

Comment(by kosmikus):

 Thanks for the quick reply.

 The documentation makes it clear, but it isn't the place I'd have looked
 at. I'm not using kind polymorphism, nor am I using recursion.

 The documentation also says: "you get kind * -- if you want to get
 polymorphism, use an explicit annotation". But I don't want polymorphism.
 I want the type checker to infer "* -> *" for f.

 So all in all, the current system seems more restrictive than the value-
 level inference, as I don't get even monomorphic types inferred anymore.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6159#comment:2>
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