[GHC] #5290: Add UNPACK support to Template Haskell
GHC
cvs-ghc at haskell.org
Thu Jul 21 23:56:25 CEST 2011
#5290: Add UNPACK support to Template Haskell
-----------------------------------+----------------------------------------
Reporter: mikhail.vorozhtsov | Owner:
Type: feature request | Status: merge
Priority: high | Milestone: 7.4.1
Component: Template Haskell | Version: 7.1
Keywords: | Testcase: th/T5290
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
-----------------------------------+----------------------------------------
Changes (by simonpj):
* status: patch => merge
* testcase: => th/T5290
Comment:
Thanks. Seemed to fit into the existing data types quite nicely. I
applied yoru patches. (Something went wrong with using your patches
verbatim, so you are only credited as author in the commit message.)
{{{
commit 65c019407134fcb0c6b7c9d2038ba07c52e2a6c2
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Fri Jul 15 21:15:43 2011 +0100
Extend Template Haskell to support the UNPACk pragma on data
constructors
(Work done by mikhail.vorozhtsov.)
compiler/hsSyn/Convert.lhs | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
}}}
and in the TH lib
{{{
commit 15f68f57ca685933d18d88655e91ea692ccd198f
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Mon Jul 18 23:25:51 2011 +0100
Add TH support for UNPACK pragmas (Trac #5290)
The extension is nice, because it just adds an extra
constructor to the existing data type 'Strict'.
Thanks to Mikhail Vorozhtsov.
Language/Haskell/TH/Lib.hs | 3 ++-
Language/Haskell/TH/Ppr.hs | 1 +
Language/Haskell/TH/Syntax.hs | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
}}}
Could merge to 7.2
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5290#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list