From 1f81568269189c863772369bb62a7598735ee684 Mon Sep 17 00:00:00 2001 From: Mikolaj Konarski Date: Mon, 29 Apr 2024 17:35:54 +0200 Subject: Make also the sized shaped lists strict due to impurity in horde-ad --- src/Data/Array/Nested/Internal.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Data/Array/Nested') diff --git a/src/Data/Array/Nested/Internal.hs b/src/Data/Array/Nested/Internal.hs index 1999bb6..7d3b4bc 100644 --- a/src/Data/Array/Nested/Internal.hs +++ b/src/Data/Array/Nested/Internal.hs @@ -1080,7 +1080,7 @@ type ListS :: [Nat] -> Type -> Type data ListS sh i where ZS :: ListS '[] i (::$) :: forall n sh {i}. (KnownNat n, KnownShape sh) - => i -> ListS sh i -> ListS (n : sh) i + => !i -> !(ListS sh i) -> ListS (n : sh) i deriving instance Show i => Show (ListS sh i) deriving instance Eq i => Eq (ListS sh i) deriving instance Ord i => Ord (ListS sh i) -- cgit v1.2.3-70-g09d2