Ticket #175 (closed defect: fixed)
Bad pattern match code generated for list comprehension
| Reported by: | erikd | Owned by: | erikd |
|---|---|---|---|
| Priority: | blocker | Milestone: | 0.1.3 |
| Component: | Core to Sea Translation | Version: | |
| Keywords: | Cc: |
Description
This code:
main () = println $ show [ x | xs <- [ [(1,2),(3,4)], [(5,4),(3,2)] ], (3,x) <- xs ]
compiles, but when run terminates with the error:
*** DDC RTS: Non-exhaustive patterns in ?:0:0
This is actually two bugs:
- Failure to give a valid source position (?:0:0) for the error.
- Non-exhaustive pattern match.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
