[commit: containers] master: Fix compilation with ghc-6.12. (781ff38)

Ian Lynagh igloo at earth.li
Thu Feb 23 01:15:21 CET 2012


Repository : ssh://darcs.haskell.org//srv/darcs/packages/containers

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/781ff381063a368f363e0f6db73d8c9a60e1a2ba

>---------------------------------------------------------------

commit 781ff381063a368f363e0f6db73d8c9a60e1a2ba
Author: Milan Straka <fox at ucw.cz>
Date:   Tue Nov 29 09:59:35 2011 +0100

    Fix compilation with ghc-6.12.
    
    GHC < 7.0 cannot handle conditional pragmas, which we use.
    Therefore for GHC < 7.0, the extensions are specified in the cabal file.
    When GHC < 7.0 obsoletes, we will remove them.

>---------------------------------------------------------------

 containers.cabal |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/containers.cabal b/containers.cabal
index 84ee7d0..55a51e2 100644
--- a/containers.cabal
+++ b/containers.cabal
@@ -51,6 +51,9 @@ Library
 
     include-dirs: include
 
+    if impl(ghc<7.0)
+        extensions: MagicHash, DeriveDataTypeable, StandaloneDeriving, Rank2Types
+
     if flag(testing)
         cpp-options: -DTESTING
 





More information about the Cvs-libraries mailing list