[GHC] #3719: Literate code with #
GHC
trac at galois.com
Thu Dec 3 06:49:38 EST 2009
#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
More information about the Glasgow-haskell-bugs
mailing list