#5401: LANGUAGE pragma parser nit
-------------------------------+--------------------------------------------
    Reporter:  nwf             |       Owner:                           
        Type:  bug             |      Status:  new                      
    Priority:  normal          |   Component:  Compiler (Parser)        
     Version:  7.0.3           |    Keywords:                           
    Testcase:                  |   Blockedby:                           
          Os:  Linux           |    Blocking:                           
Architecture:  x86_64 (amd64)  |     Failure:  GHC rejects valid program
-------------------------------+--------------------------------------------
 A language pragma like

 {-# LANGUAGE
     TypeOperators,
     FlexibleContexts #-}

 parses just fine but

 {-# LANGUAGE
     TypeOperators,
     FlexibleContexts
 #-}

 doesn't, saying:

     Cannot parse LANGUAGE pragma
     Expecting comma-separated list of language options,
     each starting with a capital letter

 An OPTIONS pragma, on the other hand, accepts either format without
 complaint.

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