[GHC] #5401: LANGUAGE pragma parser nit
GHC
cvs-ghc at haskell.org
Thu Oct 25 18:29:20 CEST 2012
#5401: LANGUAGE pragma parser nit
----------------------------------+-----------------------------------------
Reporter: nwf | Owner: igloo
Type: bug | Status: new
Priority: normal | Milestone: 7.6.2
Component: Compiler (Parser) | Version: 7.0.3
Keywords: | Os: Linux
Architecture: x86_64 (amd64) | Failure: GHC rejects valid program
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
----------------------------------+-----------------------------------------
Changes (by igloo):
* difficulty: => Unknown
Old description:
> 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.
New description:
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#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list