aboutsummaryrefslogtreecommitdiff
path: root/src/Data/Array/Nested
diff options
context:
space:
mode:
authorMikolaj Konarski <mikolaj.konarski@funktory.com>2025-12-15 20:40:49 +0100
committerMikolaj Konarski <mikolaj.konarski@funktory.com>2025-12-15 22:24:36 +0100
commit082e4853ddeed272437302c18cf241f7b45ef110 (patch)
tree03098876f5bf06d04525445067d0e8656ee050c4 /src/Data/Array/Nested
parent0238cb8339067d8e235ebbc25062639519c3b90b (diff)
Temporarily remove the UNPACK, until GHC is fixed not to crash with it
Diffstat (limited to 'src/Data/Array/Nested')
-rw-r--r--src/Data/Array/Nested/Mixed/Shape.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Data/Array/Nested/Mixed/Shape.hs b/src/Data/Array/Nested/Mixed/Shape.hs
index dc4063c..6b7708f 100644
--- a/src/Data/Array/Nested/Mixed/Shape.hs
+++ b/src/Data/Array/Nested/Mixed/Shape.hs
@@ -341,7 +341,9 @@ type ListH :: [Maybe Nat] -> Type -> Type
data ListH sh i where
ZH :: ListH '[] i
ConsUnknown :: forall sh i. i -> ListH sh i -> ListH (Nothing : sh) i
- ConsKnown :: forall n sh i. {-# UNPACK #-} SNat n -> ListH sh i -> ListH (Just n : sh) i
+-- TODO: bring this UNPACK back when GHC no longer crashes:
+-- ConsKnown :: forall n sh i. {-# UNPACK #-} SNat n -> ListH sh i -> ListH (Just n : sh) i
+ ConsKnown :: forall n sh i. SNat n -> ListH sh i -> ListH (Just n : sh) i
deriving instance Eq i => Eq (ListH sh i)
deriving instance Ord i => Ord (ListH sh i)