diff options
| author | Mikolaj Konarski <mikolaj.konarski@funktory.com> | 2025-12-14 16:55:45 +0100 |
|---|---|---|
| committer | Mikolaj Konarski <mikolaj.konarski@funktory.com> | 2025-12-14 20:42:00 +0100 |
| commit | b0cc8caff4ccf5df85f3bea743be1f03ddde01c6 (patch) | |
| tree | d1e0489ccf1b28a8e67b834820836af9cf3c6a0e /README.md | |
| parent | 87e656c5cfebdbd2966494e8ef3f5504d328232a (diff) | |
Fix f in SMayNat to always be SNat and UNPACK it
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -112,18 +112,18 @@ data ShS sh where data IShX xsh where ZSX :: IShX '[] - (:$%) :: SMayNat Int SNat mn -> IShX xsh -> IShX (mn : xsh) + (:$%) :: SMayNat Int mn -> IShX xsh -> IShX (mn : xsh) -- where: -data SMayNat i f n where - SUnknown :: i -> SMayNat i f Nothing - SKnown :: f n -> SMayNat i f (Just n) +data SMayNat i n where + SUnknown :: i -> SMayNat i Nothing + SKnown :: SNat n -> SMayNat i (Just n) -- Occasionally one needs a singleton for only the _known_ dimensions of a mixed -- shape -- that is to say, only the statically-known part of a mixed shape. -- StaticShX provides for this need. It can be used as if defined as follows: data StaticShX xsh where ZKX :: StaticShX '[] - (:!%) :: SMayNat () SNat mn -> StaticShX xsh -> StaticShX (mn : xsh) + (:!%) :: SMayNat () mn -> StaticShX xsh -> StaticShX (mn : xsh) -- The Elt class describes types that can be used as elements of an array. While -- it is technically possible to define new instances of this class, typical |
