Ticket #7676 (new feature request)
Unify patterns and function bindings
| Reported by: | Mathnerd314 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.8.1 |
| Component: | Compiler | Version: | 7.7 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | GHC rejects valid program | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
The following program:
a | True = 1 a | False = 2
produces an error (on 7.4.1 and 7.7.2012117):
Conflicting definitions for 'a'
The following two examples produce no error:
b | True = 1 | False = 2 c _ | True = 1 c _ | False = 2
I would expect a, b. and c () to have identical behaviour.
Change History
Note: See
TracTickets for help on using
tickets.
