diff options
| author | Mikolaj Konarski <mikolaj.konarski@funktory.com> | 2026-04-09 22:58:39 +0200 |
|---|---|---|
| committer | Mikolaj Konarski <mikolaj.konarski@funktory.com> | 2026-04-09 22:58:39 +0200 |
| commit | 21e52b349aaf0978f0ce5925fef6e53e0c9436f9 (patch) | |
| tree | 6798918805e1142ffa889cba66e9dc6d1ffa9249 /src/Data/Array/Nested/Ranked | |
| parent | 7b0824ad591e9df501a57b8a2e4b5148d55f6dd0 (diff) | |
Get rid of most ListX operations
Diffstat (limited to 'src/Data/Array/Nested/Ranked')
| -rw-r--r-- | src/Data/Array/Nested/Ranked/Shape.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Data/Array/Nested/Ranked/Shape.hs b/src/Data/Array/Nested/Ranked/Shape.hs index 5e84a2d..f260d07 100644 --- a/src/Data/Array/Nested/Ranked/Shape.hs +++ b/src/Data/Array/Nested/Ranked/Shape.hs @@ -153,7 +153,7 @@ ixrCast _ _ = error "ixrCast: ranks don't match" -- lemReplicatePlusApp requires SNat that would cause overhead (not benchmarked) ixrAppend :: forall n m i. IxR n i -> IxR m i -> IxR (n + m) i ixrAppend = gcastWith (unsafeCoerceRefl :: Replicate (n + m) (Nothing @Nat) :~: Replicate n Nothing ++ Replicate m Nothing) $ - coerce (listxAppend @_ @_ @i) + coerce (ixxAppend @_ @_ @i) ixrIndex :: forall k n i. (k + 1 <= n) => SNat k -> IxR n i -> i ixrIndex SZ (x :.: _) = x |
