[GHC] #5401: LANGUAGE pragma parser nit
GHC
cvs-ghc at haskell.org
Sat Aug 13 13:58:26 CEST 2011
#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
-------------------------------+--------------------------------------------
Comment(by daniel.is.fischer):
The user's guide says
{{{
The layout rule applies in pragmas, so the closing #-} should start in a
column to the right of the opening {-#.
}}}
The language report doesn't mention any such restrictions though, so
perhaps it should be listed in Bugs and infelicities (supposing the parse
can't easily be changed to accept the `#-}` anywhere).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5401#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list