Ticket #5468: 0002-DeepSeq-Enable-SafeHaskell-for-GHC-7.2.patch

File 0002-DeepSeq-Enable-SafeHaskell-for-GHC-7.2.patch, 1.1 KB (added by hvr, 4 years ago)
  • Control/DeepSeq.hs

    From 783e7fb5822007cdfa145dafffc36b45e0be5749 Mon Sep 17 00:00:00 2001
    From: Herbert Valerio Riedel <[email protected]>
    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 b  
     1#if __GLASGOW_HASKELL__ >= 701 
     2{-# LANGUAGE Safe #-} 
     3#endif 
    14----------------------------------------------------------------------------- 
    25-- | 
    36-- Module      :  Control.DeepSeq 
  • deepseq.cabal

    diff --git a/deepseq.cabal b/deepseq.cabal
    index 34c5fc4..1d83473 100644
    a b library { 
    3030  exposed-modules: Control.DeepSeq 
    3131  build-depends: base       >= 3   && < 5 
    3232  ghc-options: -Wall 
     33  extensions: CPP 
    3334}