[project @ 2003-11-27 13:26:38 by simonmar]
authorsimonmar <unknown>
Thu, 27 Nov 2003 13:26:39 +0000 (13:26 +0000)
committersimonmar <unknown>
Thu, 27 Nov 2003 13:26:39 +0000 (13:26 +0000)
commite9e72bd1cd7776609aa7d7f5e71edc4c2edced4d
tree4e71dae6f4aad30bab9a16b428bdf98e31835c3f
parentf901ffc86ada53aaa65a3d941d344b9c036a6147
[project @ 2003-11-27 13:26:38 by simonmar]
On reflection, using the '!!' prefix for unboxing a constructor field
was a mistake:  firstly it has to be written '! !', and secondly it
isn't backwards-compatible.  So instead, we now use the syntax:

   data T = T {-# UNPACK #-} !Int

to unbox a field.  We thought this would be a cute reuse of the UNPACK
pragma.

The effect of -funbox-strict-fields is to add {-# UNPACK #-} to every
strict field.
ghc/compiler/parser/Lexer.x
ghc/compiler/parser/Parser.y