#2114: Bad error message for omitting -XExistentialQuantification flag
------------------------+---------------------------------------------------
    Reporter:  tim      |       Owner:                         
        Type:  bug      |      Status:  new                    
    Priority:  normal   |   Component:  Compiler (Type checker)
     Version:  6.8.2    |    Severity:  minor                  
    Keywords:           |    Testcase:                         
Architecture:  Unknown  |          Os:  Unknown                
------------------------+---------------------------------------------------
 If I compile this program:
 {{{
 module Foo where

 data T = forall a . MkT a
 }}}
 with:
 {{{
 ghc-6.8.1  extest.hs -c
 }}}

 I get the error:
 {{{
 extest.hs:3:9: Not a constructor: `forall'
 }}}

 I think it would be a better error message to suggest passing in the
 -XExistentialQuantification flag.

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