#2032: SCC annotations cause compile errors
----------------------+-----------------------------------------------------
Reporter: m4dc4p | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.8.2
Severity: normal | Resolution: wontfix
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Windows |
----------------------+-----------------------------------------------------
Changes (by simonmar):
* status: new => closed
* resolution: => wontfix
Comment:
Function application precedence would be inconvenient: usually you want
SCC to extend "as far to the right as possible". So right now SCC parses
in the same way as `\x -> e`, that is is gobbles up as much `e` as it can.
I think this makes sense for SCC, and I don't buy the argument that an SCC
annotation should not affect the parse: pragmas that the compiler
understands are part of the syntax. Pragmas that the compiler does not
understand are treated as comments, as they should be.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2032#comment:4>
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