aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikolaj Konarski <mikolaj.konarski@funktory.com>2025-12-15 20:40:49 +0100
committerMikolaj Konarski <mikolaj.konarski@funktory.com>2026-02-18 14:22:18 +0100
commit954e0958d2d6d40be9d95004a7f813ae9ce5d947 (patch)
tree4c69ac102c55e962eea788a2f1ae90588ee52d60 /src
parent2a64ce929973eb9deba65cbb75340af590562949 (diff)
Temporarily remove the UNPACK, until GHC is fixed not to crash with it
Diffstat (limited to 'src')
-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 f62553c..ae267da 100644
--- a/src/Data/Array/Nested/Mixed/Shape.hs
+++ b/src/Data/Array/Nested/Mixed/Shape.hs
@@ -342,7 +342,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)