Skip to content

Error message should suggest UnboxedTuples language extension

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.

Trac metadata
Trac field Value
Version 6.9
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler (Parser)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information