#2260: Non-ideal error message for misplaced LANGUAGE pragma
-------------------------+--------------------------------------------------
    Reporter:  TomMD     |       Owner:                   
        Type:  bug       |      Status:  new              
    Priority:  normal    |   Component:  Compiler (Parser)
     Version:  6.8.2     |    Severity:  trivial          
    Keywords:            |    Testcase:                   
Architecture:  Multiple  |          Os:  Multiple         
-------------------------+--------------------------------------------------
 Placing the LANGUAGE pragma anywhere besides the top results in it not
 being accepted - thus this should result in an error message.

 Trivially:
 {{{
 import Data.Maybe

 {-# LANGUAGE EmptyDataDecls #-}

 data A
 }}}

 This would be minorly more annoying for TypeFamilies, who's error doesn't
 mention language extentions:
 "Data/Queue.hs:30:0: parse error (possibly incorrect indentation)"

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