[GHC] #10243: SrcSpan incorrect for non-alphanumeric VarPat
GHC
ghc-devs at haskell.org
Sun Apr 5 14:50:49 UTC 2015
#10243: SrcSpan incorrect for non-alphanumeric VarPat
-------------------------------------+-------------------------------------
Reporter: mpickering | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 7.10.2
Component: Compiler | Version: 7.10.1
Resolution: invalid | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: None/Unknown | Unknown/Multiple
Blocked By: | Test Case:
Related Tickets: | Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
Changes (by rwbarton):
* status: new => closed
* resolution: => invalid
Comment:
These really do parse differently though: `(x)` is a pattern `x` enclosed
in parentheses, while `(.)` is a single identifier (infix operator in
prefix form).
If you consult
https://www.haskell.org/onlinereport/haskell2010/haskellch10.html I think
you will find that these outputs match the parses specified by the Report.
Please reopen if you disagree.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10243#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list