patch applied (ghc-7.0/packages/base): Define SpecConstrAnnotation in GHC.Exts, and import it from there

Ian Lynagh igloo at earth.li
Mon Oct 18 17:27:59 EDT 2010


Mon Oct 18 06:58:57 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 ./GHC/Exts.hs -1 +24

View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=ghc-7.0/packages/base;a=darcs_commitdiff;h=20101018135857-1287e-309c667320ad3e9e2b7cd655b93b3270aa63bf0b.gz


More information about the Cvs-libraries mailing list