Ticket #2708 (new feature request)
Error message should suggest UnboxedTuples language extension
| Reported by: | tim | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | _|_ |
| Component: | Compiler (Parser) | Version: | 6.9 |
| Keywords: | Cc: | pho@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
If I compile this code:
module Foo where
import GHC.Integer
foo x y =
case x `quotRemInteger` y of
(# y, z #) -> 42
I get:
foo.hs:7:5: Parse error in pattern
It would be better if the error message suggested using -XUnboxedTuples.
Change History
Note: See
TracTickets for help on using
tickets.
