[GHC] #1100: Parse error on (#) in .lhs files
GHC
trac at galois.com
Mon Jan 22 04:13:43 EST 2007
#1100: Parse error on (#) in .lhs files
------------------------------------+---------------------------------------
Reporter: j.russell at alum.mit.edu | Owner:
Type: bug | Status: new
Priority: low | Milestone:
Component: Compiler (Parser) | Version: 6.6
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Unknown |
------------------------------------+---------------------------------------
Changes (by simonpj):
* priority: normal => low
Comment:
I think it works fine unless you have -fglasgow-exts. If you use
-fglasgow-exts, GHC uses (# and #) parens for unboxed tuples. This does
indeed mean you can't give a type sig to (#), which is sub-optimal, since
it clearly isn't an unboxed tuple.
I guess this would mean fixing the lexer to recognise (#) in addition to
(# and #).
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1100>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list