diff options
author | Tom Smeding <tom@tomsmeding.com> | 2025-06-04 14:59:40 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2025-06-04 14:59:40 +0200 |
commit | 5d769178ee804c3804c9d7bf155ac2e46407eb3a (patch) | |
tree | 0866687a78a5ecdc411a938f288e43eae774fe70 /src/Data/Array/Nested/Shaped.hs | |
parent | 4261cb045081188a48bc8306f173166a79fcb1df (diff) |
Add shape checking to [rms]zip
Diffstat (limited to 'src/Data/Array/Nested/Shaped.hs')
-rw-r--r-- | src/Data/Array/Nested/Shaped.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Data/Array/Nested/Shaped.hs b/src/Data/Array/Nested/Shaped.hs index aaba367..0275aad 100644 --- a/src/Data/Array/Nested/Shaped.hs +++ b/src/Data/Array/Nested/Shaped.hs @@ -173,7 +173,7 @@ sunNest sarr@(Shaped (M_Shaped (M_Nest _ arr))) | Refl <- lemMapJustApp (sshape sarr) (Proxy @sh') = Shaped arr -szip :: Shaped sh a -> Shaped sh b -> Shaped sh (a, b) +szip :: (Elt a, Elt b) => Shaped sh a -> Shaped sh b -> Shaped sh (a, b) szip = coerce mzip sunzip :: Shaped sh (a, b) -> (Shaped sh a, Shaped sh b) |