diff --git a/src/Data/Binary/Class.hs b/src/Data/Binary/Class.hs index 0807c5ff0f51f0e551d2675e3589d27e6954268a..37117f75077db51ce25ef99d2e4f7785d291a48f 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 20777720a90510dbdbb6f44fb391c82cbdac15dd..3f8edb3915a3eb6f300806261e570a6ad99daf6b 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 112d1458bad240c2d83d8b31bb5ebacf7690fada..5ada9b27ce7fc754b58d5a8c3c9bd8baddb0b888 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