@@ -73,7 +73,10 @@ module Streamly.List
75import Control.Arrow (second)
75import Control.Arrow (second)
76−import Control.DeepSeq (NFData(..), NFData1(..))
76+import Control.DeepSeq (NFData(..))
77+#if MIN_VERSION_deepseq(1,4,3)
78+import Control.DeepSeq (NFData1(..))
77import Data.Functor.Identity (Identity, runIdentity)
80import Data.Functor.Identity (Identity, runIdentity)
78import Data.Semigroup (Semigroup(..))
81import Data.Semigroup (Semigroup(..))
79import GHC.Exts (IsList(..), IsString(..))
82import GHC.Exts (IsList(..), IsString(..))
@@ -100,7 +103,10 @@ import qualified Streamly.Streams.StreamK as K
101-- @since 0.6.0
104-- @since 0.6.0
102newtype List a = List { toSerial :: SerialT Identity a }
105newtype List a = List { toSerial :: SerialT Identity a }
103− deriving (Show, Read, Eq, Ord, NFData, NFData1
106+ deriving (Show, Read, Eq, Ord, NFData
107+#if MIN_VERSION_deepseq(1,4,3)
104 , Semigroup, Monoid, Functor, Foldable
110 , Semigroup, Monoid, Functor, Foldable
105 , Applicative, Traversable, Monad)
111 , Applicative, Traversable, Monad)
@@ -159,7 +165,10 @@ pattern Cons x xs <-
160-- @since 0.6.0
166-- @since 0.6.0
161newtype ZipList a = ZipList { toZipSerial :: ZipSerialM Identity a }
167newtype ZipList a = ZipList { toZipSerial :: ZipSerialM Identity a }
162− deriving (Show, Read, Eq, Ord, NFData, NFData1
168+ deriving (Show, Read, Eq, Ord, NFData
169+#if MIN_VERSION_deepseq(1,4,3)
163 , Semigroup, Monoid, Functor, Foldable
172 , Semigroup, Monoid, Functor, Foldable
164 , Applicative, Traversable)
173 , Applicative, Traversable)