From 783e7fb5822007cdfa145dafffc36b45e0be5749 Mon Sep 17 00:00:00 2001
From: Herbert Valerio Riedel <hvr@gnu.org>
Date: Wed, 7 Sep 2011 09:46:17 +0200
Subject: [PATCH 2/2] Enable SafeHaskell for GHC >= 7.2

This is done since by addressing #5468 `deepseq` is becoming a GHC
boot package. This simplifies compilation of the `containers` package
which uses SafeHaskell itself and as per #5468 will be made to import
`deepseq`.
---
 Control/DeepSeq.hs |    3 +++
 deepseq.cabal      |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Control/DeepSeq.hs b/Control/DeepSeq.hs
index b6e6d52..021a160 100644
--- a/Control/DeepSeq.hs
+++ b/Control/DeepSeq.hs
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Safe #-}
+#endif
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  Control.DeepSeq
diff --git a/deepseq.cabal b/deepseq.cabal
index 34c5fc4..1d83473 100644
--- a/deepseq.cabal
+++ b/deepseq.cabal
@@ -30,4 +30,5 @@ library {
   exposed-modules: Control.DeepSeq
   build-depends: base       >= 3   && < 5
   ghc-options: -Wall
+  extensions: CPP
 }
-- 
1.7.4.1

