#3719: Literate code with #
---------------------------------+------------------------------------------
Reporter: zenzike | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler (Parser)
Version: 6.10.4 | Keywords:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: GHC rejects valid program
---------------------------------+------------------------------------------
Any literate script where the hash symbol # is in the first column of a
file does not compile in ghc.
For example,
{{{
> foo = 1 + 2
#
}}}
will give rise to the following error:
{{{
lexical error at character '\n'
}}}
This is rather annoying, since # is used in markup languages as a heading
delimiter. The example compiles fine using hugs.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3719>
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