Literate code with #
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.
Trac metadata
Trac field | Value |
---|---|
Version | 6.10.4 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler (Parser) |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |