aboutsummaryrefslogtreecommitdiff
path: root/src/Data/Array/Nested/Ranked/Shape.hs
diff options
context:
space:
mode:
authorMikolaj Konarski <mikolaj.konarski@funktory.com>2025-10-20 16:59:02 +0200
committerMikolaj Konarski <mikolaj.konarski@funktory.com>2025-10-20 16:59:02 +0200
commit069ac5b0bcf52b8b5414261106e82ef0eb8a582e (patch)
tree1780a33a87178ca4ba46f2614f2f868bc46d3a55 /src/Data/Array/Nested/Ranked/Shape.hs
parent2018dc3476c1a1b723f8c7106d628bd0da8cb49c (diff)
Remove a spurious case now correclty rules out by the plugins
Diffstat (limited to 'src/Data/Array/Nested/Ranked/Shape.hs')
-rw-r--r--src/Data/Array/Nested/Ranked/Shape.hs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Data/Array/Nested/Ranked/Shape.hs b/src/Data/Array/Nested/Ranked/Shape.hs
index 488b4d8..837b1ac 100644
--- a/src/Data/Array/Nested/Ranked/Shape.hs
+++ b/src/Data/Array/Nested/Ranked/Shape.hs
@@ -134,7 +134,6 @@ listrCast = listrCastWithName "listrCast"
listrIndex :: forall k n i. (k + 1 <= n) => SNat k -> ListR n i -> i
listrIndex SZ (x ::: _) = x
listrIndex (SS i) (_ ::: xs) | Refl <- lemLeqSuccSucc (Proxy @k) (Proxy @n) = listrIndex i xs
-listrIndex _ ZR = error "k + 1 <= 0"
listrZip :: ListR n i -> ListR n j -> ListR n (i, j)
listrZip ZR ZR = ZR