diff options
| author | Tom Smeding <tom@tomsmeding.com> | 2025-06-29 12:34:32 +0200 | 
|---|---|---|
| committer | Tom Smeding <tom@tomsmeding.com> | 2025-06-29 12:40:01 +0200 | 
| commit | 99a594767ae0bde6f836fcae55ff8abf87b5b300 (patch) | |
| tree | 79f8622ebd86cc6dedbe1d866493b71b0d527bf6 /src/Data/Array/Nested/Shaped | |
| parent | 0ace0c79acbd98b7592d155c8b54e2959e3a706f (diff) | |
Cleanup
Diffstat (limited to 'src/Data/Array/Nested/Shaped')
| -rw-r--r-- | src/Data/Array/Nested/Shaped/Base.hs | 4 | ||||
| -rw-r--r-- | src/Data/Array/Nested/Shaped/Shape.hs | 4 | 
2 files changed, 6 insertions, 2 deletions
| diff --git a/src/Data/Array/Nested/Shaped/Base.hs b/src/Data/Array/Nested/Shaped/Base.hs index ddd44bf..a24a91a 100644 --- a/src/Data/Array/Nested/Shaped/Base.hs +++ b/src/Data/Array/Nested/Shaped/Base.hs @@ -246,9 +246,9 @@ sshape :: forall sh a. Elt a => Shaped sh a -> ShS sh  sshape (Shaped arr) = shsFromShX (mshape arr)  -- Needed already here, but re-exported in Data.Array.Nested.Convert. -shsFromShX :: forall sh. IShX (MapJust sh) -> ShS sh +shsFromShX :: forall sh i. ShX (MapJust sh) i -> ShS sh  shsFromShX ZSX = castWith (subst1 (unsafeCoerceRefl :: '[] :~: sh)) ZSS -shsFromShX (SKnown n@SNat :$% (idx :: IShX mjshT)) = +shsFromShX (SKnown n@SNat :$% (idx :: ShX mjshT i)) =    castWith (subst1 (lem Refl)) $      n :$$ shsFromShX @(Tail sh) (castWith (subst2 (unsafeCoerceRefl :: mjshT :~: MapJust (Tail sh)))                                     idx) diff --git a/src/Data/Array/Nested/Shaped/Shape.hs b/src/Data/Array/Nested/Shaped/Shape.hs index 20a7a7a..d34f3ec 100644 --- a/src/Data/Array/Nested/Shaped/Shape.hs +++ b/src/Data/Array/Nested/Shaped/Shape.hs @@ -50,6 +50,8 @@ import Data.Array.Nested.Types  -- * Shaped lists +-- | Note: The 'KnownNat' constraint on '(::$)' is deprecated and should be +-- removed in a future release.  type role ListS nominal representational  type ListS :: [Nat] -> (Nat -> Type) -> Type  data ListS sh f where @@ -193,6 +195,8 @@ newtype IxS sh i = IxS (ListS sh (Const i))  pattern ZIS :: forall sh i. () => sh ~ '[] => IxS sh i  pattern ZIS = IxS ZS +-- | Note: The 'KnownNat' constraint on '(:.$)' is deprecated and should be +-- removed in a future release.  pattern (:.$)    :: forall {sh1} {i}.       forall n sh. (KnownNat n, n : sh ~ sh1) | 
