patch applied (ghc-7.0/ghc): Define SpecConstrAnnotation in
GHC.Exts, and import it from there
Ian Lynagh
igloo at earth.li
Mon Oct 18 16:48:42 EDT 2010
Mon Oct 18 06:57:46 PDT 2010 simonpj at microsoft.com
* Define SpecConstrAnnotation in GHC.Exts, and import it from there
Reason: avoid having to link the entire ghc package in modules
that use compile-time annotations:
import GHC.Exts( SpecConstrAnnotation )
{-# ANN type T ForceSpecConstr #-}
It's a kind of bug that the package exporting SpecConstrAnnotation
is linked even though it is only needed at compile time, but putting
the data type declaration in GHC.Exts is a simple way to sidestep
the problem
See See Note [SpecConstrAnnotation] in SpecConstr
M ./compiler/specialise/SpecConstr.lhs -37 +56
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=ghc-7.0/ghc;a=darcs_commitdiff;h=20101018135746-1287e-b62c5d866b613e6cd156fff46ec4ad7f08680758.gz
More information about the Cvs-ghc
mailing list