aboutsummaryrefslogtreecommitdiff
path: root/src/Array.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2024-03-27 22:58:51 +0100
committerTom Smeding <tom@tomsmeding.com>2024-03-27 22:58:51 +0100
commitae113c0249f3fe8be7df345081b1b51451cd3fdf (patch)
treefaf241d19fec975f7d77a4486505a57ed4cc0b8b /src/Array.hs
parentcb31e179971293c519a530d8ce8ccc004458b1c4 (diff)
Ranked interface
Diffstat (limited to 'src/Array.hs')
-rw-r--r--src/Array.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Array.hs b/src/Array.hs
index 5140eaf..29806d4 100644
--- a/src/Array.hs
+++ b/src/Array.hs
@@ -43,6 +43,7 @@ data StaticShapeX sh where
SZX :: StaticShapeX '[]
(:$@) :: SNat n -> StaticShapeX sh -> StaticShapeX (Just n : sh)
(:$?) :: () -> StaticShapeX sh -> StaticShapeX (Nothing : sh)
+deriving instance Show (StaticShapeX sh)
type KnownShapeX :: [Maybe Nat] -> Constraint
class KnownShapeX sh where