#3850: EmptyDataDecls and type context
---------------------------------+------------------------------------------
    Reporter:  Paczesiowa        |       Owner:                           
        Type:  bug               |      Status:  new                      
    Priority:  normal            |   Component:  Compiler                 
     Version:  6.12.1            |    Keywords:  emptydatadecls           
          Os:  Unknown/Multiple  |    Testcase:                           
Architecture:  Unknown/Multiple  |     Failure:  GHC rejects valid program
---------------------------------+------------------------------------------
 the following code fails to parse correctly or typecheck under 6.12.1


 {{{
 {-# LANGUAGE EmptyDataDecls #-}
 data Show a => Foo a
 }}}


 error:


 {{{
     No context is allowed on a GADT-style data declaration
     (You can put a context on each contructor, though.)
 }}}


 it works with 6.10.

 this is the reason of HList failure on 6.12.

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