#7562: Parse error with {-# UNPACK #-} Int
-----------------------------+----------------------------------------------
Reporter: nomeata | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.6.1 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Blockedby:
Blocking: | Related:
-----------------------------+----------------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7562>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs