Ticket #2 (closed bug report: fixed)
Parser fails on x-y
| Reported by: | nibro | Owned by: | nibro |
|---|---|---|---|
| Priority: | critical | Milestone: | Full code support |
| Component: | parser | Version: | |
| Keywords: | Cc: | ndmitchell@… |
Description
foo x y = fromIntegral $ x-y+1
Due to the HSX extension, x-y is considered a single identifier. The parser tries to be clever, but isn't clever enough when x-y is also combined with some other operator, e.g. x-y+1 above. Two possible resolutions:
1) Make the parser more clever. 2) Rule out x-y meaning a subtraction when the HSX extention is active.
Probably favor 2).
Change History
Note: See
TracTickets for help on using
tickets.
