@@ -73,7 +73,10 @@ module Streamly.List
7373where
7474
7575import 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(..))
79+#endif
7780import Data.Functor.Identity (Identity, runIdentity)
7881import Data.Semigroup (Semigroup(..))
7982import GHC.Exts (IsList(..), IsString(..))
@@ -100,7 +103,10 @@ import qualified Streamly.Streams.StreamK as K
100103--
101104-- @since 0.6.0
102105newtype 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)
108+ , NFData1
109+#endif
104110 , Semigroup, Monoid, Functor, Foldable
105111 , Applicative, Traversable, Monad)
106112
@@ -159,7 +165,10 @@ pattern Cons x xs <-
159165--
160166-- @since 0.6.0
161167newtype 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)
170+ , NFData1
171+#endif
163172 , Semigroup, Monoid, Functor, Foldable
164173 , Applicative, Traversable)
165174