@@ -63,9 +63,7 @@ where
64import Control.Arrow (second)
64import Control.Arrow (second)
65import Control.DeepSeq (NFData(..))
65import Control.DeepSeq (NFData(..))
66−#if MIN_VERSION_deepseq(1,4,3)
67import Control.DeepSeq (NFData1(..))
66import Control.DeepSeq (NFData1(..))
69import Data.Functor.Identity (Identity, runIdentity)
67import Data.Functor.Identity (Identity, runIdentity)
70import GHC.Exts (IsList(..), IsString(..))
68import GHC.Exts (IsList(..), IsString(..))
71#if __GLASGOW_HASKELL__ < 808
69#if __GLASGOW_HASKELL__ < 808
@@ -93,12 +91,10 @@ import qualified Streamly.Internal.Data.Stream.StreamK.Type as K
94-- @since 0.6.0
92-- @since 0.6.0
95newtype List a = List { toSerial :: SerialT Identity a }
93newtype List a = List { toSerial :: SerialT Identity a }
96− deriving (Show, Read, Eq, Ord, NFData
95+ ( Show, Read, Eq, Ord, NFData , NFData1
97−#if MIN_VERSION_deepseq(1,4,3)
100− , Semigroup, Monoid, Functor, Foldable
96+ , Semigroup, Monoid, Functor, Foldable
101− , Applicative, Traversable, Monad)
97+ , Applicative, Traversable, Monad)
103instance (a ~ Char) => IsString (List a) where
99instance (a ~ Char) => IsString (List a) where
104 {-# INLINE fromString #-}
100 {-# INLINE fromString #-}
@@ -158,12 +154,11 @@ pattern Cons x xs <-
159-- @since 0.6.0
155-- @since 0.6.0
160newtype ZipList a = ZipList { toZipSerial :: ZipSerialM Identity a }
156newtype ZipList a = ZipList { toZipSerial :: ZipSerialM Identity a }
161− deriving (Show, Read, Eq, Ord, NFData
158+ ( Show, Read, Eq, Ord, NFData , NFData1
162−#if MIN_VERSION_deepseq(1,4,3)
165− , Semigroup, Monoid, Functor, Foldable
159+ , Semigroup, Monoid, Functor, Foldable
166− , Applicative, Traversable)
160+ , Applicative, Traversable
168instance (a ~ Char) => IsString (ZipList a) where
163instance (a ~ Char) => IsString (ZipList a) where
169 {-# INLINE fromString #-}
164 {-# INLINE fromString #-}