@@ -63,9 +63,7 @@ where
6363
6464import Control.Arrow (second)
6565import Control.DeepSeq (NFData(..))
66−#if MIN_VERSION_deepseq(1,4,3)
6766import Control.DeepSeq (NFData1(..))
68−#endif
6967import Data.Functor.Identity (Identity, runIdentity)
7068import GHC.Exts (IsList(..), IsString(..))
7169#if __GLASGOW_HASKELL__ < 808
@@ -93,12 +91,10 @@ import qualified Streamly.Internal.Data.Stream.StreamK.Type as K
9391--
9492-- @since 0.6.0
9593newtype List a = List { toSerial :: SerialT Identity a }
96− deriving (Show, Read, Eq, Ord, NFData
97−#if MIN_VERSION_deepseq(1,4,3)
98− , NFData1
99−#endif
100− , Semigroup, Monoid, Functor, Foldable
101− , Applicative, Traversable, Monad)
94+ deriving
95+ ( Show, Read, Eq, Ord, NFData , NFData1
96+ , Semigroup, Monoid, Functor, Foldable
97+ , Applicative, Traversable, Monad)
10298
10399instance (a ~ Char) => IsString (List a) where
104100 {-# INLINE fromString #-}
@@ -158,12 +154,11 @@ pattern Cons x xs <-
158154--
159155-- @since 0.6.0
160156newtype ZipList a = ZipList { toZipSerial :: ZipSerialM Identity a }
161− deriving (Show, Read, Eq, Ord, NFData
162−#if MIN_VERSION_deepseq(1,4,3)
163− , NFData1
164−#endif
165− , Semigroup, Monoid, Functor, Foldable
166− , Applicative, Traversable)
157+ deriving
158+ ( Show, Read, Eq, Ord, NFData , NFData1
159+ , Semigroup, Monoid, Functor, Foldable
160+ , Applicative, Traversable
161+ )
167162
168163instance (a ~ Char) => IsString (ZipList a) where
169164 {-# INLINE fromString #-}