diff options
Diffstat (limited to 'src/Data')
| -rw-r--r-- | src/Data/Array/Mixed/Shape.hs | 2 | ||||
| -rw-r--r-- | src/Data/Array/Nested/Internal/Shape.hs | 2 | 
2 files changed, 0 insertions, 4 deletions
| diff --git a/src/Data/Array/Mixed/Shape.hs b/src/Data/Array/Mixed/Shape.hs index 4dd0aa6..77d6a8b 100644 --- a/src/Data/Array/Mixed/Shape.hs +++ b/src/Data/Array/Mixed/Shape.hs @@ -156,14 +156,12 @@ listxZip :: ListX sh (Const i) -> ListX sh (Const j) -> ListX sh (Const (i, j))  listxZip ZX ZX = ZX  listxZip (Const i ::% irest) (Const j ::% jrest) =    Const (i, j) ::% listxZip irest jrest ---listxZip _ _ = error "listxZip: impossible pattern needlessly required"  listxZipWith :: (i -> j -> k) -> ListX sh (Const i) -> ListX sh (Const j)               -> ListX sh (Const k)  listxZipWith _ ZX ZX = ZX  listxZipWith f (Const i ::% irest) (Const j ::% jrest) =    Const (f i j) ::% listxZipWith f irest jrest ---listxZipWith _ _ _ = error "listxZipWith: impossible pattern needlessly required"  -- * Mixed indices diff --git a/src/Data/Array/Nested/Internal/Shape.hs b/src/Data/Array/Nested/Internal/Shape.hs index 102d9d8..438f049 100644 --- a/src/Data/Array/Nested/Internal/Shape.hs +++ b/src/Data/Array/Nested/Internal/Shape.hs @@ -456,14 +456,12 @@ listsZip :: ListS sh (Const i) -> ListS sh (Const j) -> ListS sh (Const (i, j))  listsZip ZS ZS = ZS  listsZip (Const i ::$ irest) (Const j ::$ jrest) =    Const (i, j) ::$ listsZip irest jrest ---listsZip _ _ = error "listsZip: impossible pattern needlessly required"  listsZipWith :: (i -> j -> k) -> ListS sh (Const i) -> ListS sh (Const j)               -> ListS sh (Const k)  listsZipWith _ ZS ZS = ZS  listsZipWith f (Const i ::$ irest) (Const j ::$ jrest) =    Const (f i j) ::$ listsZipWith f irest jrest ---listsZipWith _ _ _ = error "listsZipWith: impossible pattern needlessly required"  listsTakeLenPerm :: forall f is sh. Perm is -> ListS sh f -> ListS (TakeLen is sh) f  listsTakeLenPerm PNil _ = ZS | 
