Define SpecConstrAnnotation in GHC.Exts, and import it from there
authorsimonpj@microsoft.com <unknown>
Mon, 18 Oct 2010 13:58:57 +0000 (13:58 +0000)
committersimonpj@microsoft.com <unknown>
Mon, 18 Oct 2010 13:58:57 +0000 (13:58 +0000)
commit4e7e4530c1157ff21d0bb5c5b69249a4e7ee0f29
treee27223646790e48448fd52f0435ce93088094563
parent4cd3a6475de0ef9a9d1bd0b6e8cf3fb336b80a43
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
GHC/Exts.hs