[commit: packages/binary] master: Don't mark modules using bytestring as safe on GHC 7.2 to fix compilation (fb381cc)

git at git.haskell.org git at git.haskell.org
Wed Dec 16 09:42:39 UTC 2015


Repository : ssh://git@git.haskell.org/binary

On branch  : master
Link       : http://git.haskell.org/packages/binary.git/commitdiff/fb381cc6b8bbe23a87cb48c8a5681990bf522d2a

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

commit fb381cc6b8bbe23a87cb48c8a5681990bf522d2a
Author: Adam Bergmark <adam at bergmark.nl>
Date:   Wed Jul 29 17:13:50 2015 +0200

    Don't mark modules using bytestring as safe on GHC 7.2 to fix compilation


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

fb381cc6b8bbe23a87cb48c8a5681990bf522d2a
 src/Data/Binary/Class.hs   | 2 +-
 src/Data/Binary/Generic.hs | 5 ++++-
 src/Data/Binary/Put.hs     | 2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/Data/Binary/Class.hs b/src/Data/Binary/Class.hs
index 0807c5f..37117f7 100644
--- a/src/Data/Binary/Class.hs
+++ b/src/Data/Binary/Class.hs
@@ -1,5 +1,5 @@
 {-# LANGUAGE CPP, FlexibleContexts #-}
-#if __GLASGOW_HASKELL__ >= 701
+#if __GLASGOW_HASKELL__ >= 701 && __GLASGOW_HASKELL__ != 702
 {-# LANGUAGE Safe #-}
 #endif
 #ifdef GENERICS
diff --git a/src/Data/Binary/Generic.hs b/src/Data/Binary/Generic.hs
index 2077772..3f8edb3 100644
--- a/src/Data/Binary/Generic.hs
+++ b/src/Data/Binary/Generic.hs
@@ -1,5 +1,8 @@
 {-# LANGUAGE BangPatterns, CPP, FlexibleInstances, KindSignatures,
-    ScopedTypeVariables, Safe, TypeOperators, TypeSynonymInstances #-}
+    ScopedTypeVariables, TypeOperators, TypeSynonymInstances #-}
+#if __GLASGOW_HASKELL__ >= 701 && __GLASGOW_HASKELL__ != 702
+{-# LANGUAGE Safe #-}
+#endif
 {-# OPTIONS_GHC -fno-warn-orphans #-}
 
 -----------------------------------------------------------------------------
diff --git a/src/Data/Binary/Put.hs b/src/Data/Binary/Put.hs
index 112d145..5ada9b2 100644
--- a/src/Data/Binary/Put.hs
+++ b/src/Data/Binary/Put.hs
@@ -1,5 +1,5 @@
 {-# LANGUAGE CPP #-}
-#if __GLASGOW_HASKELL__ >= 701
+#if __GLASGOW_HASKELL__ >= 701 && __GLASGOW_HASKELL__ != 702
 {-# LANGUAGE Safe #-}
 #endif
 



More information about the ghc-commits mailing list