aboutsummaryrefslogtreecommitdiff
path: root/src/Data/Array/Mixed/XArray.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2024-06-07 21:46:05 +0200
committerTom Smeding <tom@tomsmeding.com>2024-06-07 21:46:05 +0200
commitcf42449abd68cc5c5648a1321df21f3c481e8b87 (patch)
treed593fefbd6313fdc9c9bfe5fa13ab77462c43e5f /src/Data/Array/Mixed/XArray.hs
parent83da7fe89c52cf84b6181141b1b0f6ffcf4ecd7c (diff)
Generalise Ord instances to full lexicographical order
Diffstat (limited to 'src/Data/Array/Mixed/XArray.hs')
-rw-r--r--src/Data/Array/Mixed/XArray.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Data/Array/Mixed/XArray.hs b/src/Data/Array/Mixed/XArray.hs
index cc0a6a5..e93ffca 100644
--- a/src/Data/Array/Mixed/XArray.hs
+++ b/src/Data/Array/Mixed/XArray.hs
@@ -39,7 +39,7 @@ newtype XArray sh a = XArray (S.Array (Rank sh) a)
deriving (Show, Eq, Generic)
-- | Only on scalars, because lexicographical ordering is strange on multi-dimensional arrays.
-deriving instance (Ord a, Storable a) => Ord (XArray '[] a)
+deriving instance (Ord a, Storable a) => Ord (XArray sh a)
instance NFData a => NFData (XArray sh a)