Parse error with {-# UNPACK #-} Int
This code (note the missing !) causes a parser error:
module UnpackedFields where
data Pair2 = Pair2 {-# UNPACK #-} Int
I think a proper error message is more helpful. Also, the docs should mention that {-# UNPACK #-
} can only be used on strict fields.
Trac metadata
Trac field | Value |
---|---|
Version | 7.6.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |