diff options
| author | Mikolaj Konarski <mikolaj.konarski@funktory.com> | 2025-12-16 09:51:51 +0100 |
|---|---|---|
| committer | Mikolaj Konarski <mikolaj.konarski@funktory.com> | 2026-03-15 10:35:48 +0100 |
| commit | e721543d6dfac2b1130b8dc0a1294c833610ba78 (patch) | |
| tree | 44d7b36645610b77ef50ee2af9f1a140d1bc49cd /src/Data/Array/Nested/Convert.hs | |
| parent | c68edd1f51dc08aabc36aed0ca3273e4751fcf5f (diff) | |
Make ShR a newtype over ShX
Diffstat (limited to 'src/Data/Array/Nested/Convert.hs')
| -rw-r--r-- | src/Data/Array/Nested/Convert.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Data/Array/Nested/Convert.hs b/src/Data/Array/Nested/Convert.hs index 7da1107..226a425 100644 --- a/src/Data/Array/Nested/Convert.hs +++ b/src/Data/Array/Nested/Convert.hs @@ -56,6 +56,9 @@ import Data.Array.Nested.Types -- * To ranked +-- TODO: change all those unsafeCoerces into coerces by defining shaped +-- and ranekd index types as newtypes of the mixed index type +-- and similarly for the sized lists ixrFromIxS :: IxS sh i -> IxR (Rank sh) i ixrFromIxS ZIS = ZIR ixrFromIxS (i :.$ ix) = i :.: ixrFromIxS ix |
