diff options
| author | Mikolaj Konarski <mikolaj.konarski@funktory.com> | 2025-12-14 16:55:45 +0100 |
|---|---|---|
| committer | Mikolaj Konarski <mikolaj.konarski@funktory.com> | 2026-01-31 13:15:12 +0100 |
| commit | dc3ce4be3daf1eb9d2664f695435d2e6ba39b064 (patch) | |
| tree | 11491dc35bde4fc88e0eaf4c76972586fbfee8b2 /README.md | |
| parent | 374d2390e343722f4a2fafe073ed1f1a26e439ce (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 |
