Ticket #1383 (closed feature request: wontfix)
mistaken qualified infix syntax could have a nicer error message
| Reported by: | Isaac Dupree | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | _|_ |
| Component: | Compiler | Version: | 6.6.1 |
| Keywords: | Cc: | shumovichy@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
Consider the expression Prelude.(+) ; we get Not in scope: data constructor `Prelude'. Unfortunately this is valid code if the module-referencing name also is the name of an in-scope data constructor. In the common case that it isn't, at least (a cursory inspection doesn't find any such exports in the libraries, e.g. Data.Map doesn't export a data-constructor Map), a message to the effect that infix operators must be qualified like (Prelude.+) instead, would be nice. (hierarchical module names probably make this a little more complicated somehow)
Change History
Note: See
TracTickets for help on using
tickets.
