Ticket #1628 (new feature request)
warning(s) for using stolen syntax that's not currently enabled
| Reported by: | Isaac Dupree | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | _|_ |
| Component: | Compiler | Version: | 6.6.1 |
| Keywords: | Cc: | id@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
Turning on -fglasgow-exts makes f x = id$x break. I propose having a flag to warn about things like this, enabled by -Wall. To be precise, "stolen syntax" is syntax that means something valid in (usually) Haskell98 and something different with some extension enabled. If there are syntax-stealing extensions implemented by other non-GHC compilers, we may want to warn about those too. (This includes all keywords, possibly other words like "forall", "exists", "family", unicode symbols for -> and others...)
If anyone actually agrees on or implements a (optional) change to unary-minus, this would subsume the warning aspects of #1318.
