#3920: Kind parsing seems to be failing
---------------------------------+------------------------------------------
    Reporter:  LouisWasserman    |       Owner:                  
        Type:  bug               |      Status:  new             
    Priority:  normal            |   Component:  Template Haskell
     Version:  6.12.1            |    Keywords:                  
          Os:  Unknown/Multiple  |    Testcase:                  
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
---------------------------------+------------------------------------------
 Template Haskell doesn't seem to be handling kinds right.  Consider

 {{{

 test :: String
 test = $(do
         test <- [d|
                 type family HTrieMapT :: (* -> (* -> * -> *)) -> (* -> *)
 -> * |]
         return (LitE (StringL (pprint test))))

 }}}

 What this actually outputs is

 {{{
 type family HTrieMapT :: (* -> ((* -> *) -> *) -> *) -> * -> *
 }}}

 which doesn't even seem close to the right kind.

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