aboutsummaryrefslogtreecommitdiff
path: root/src/Data/Array/Nested/Internal/Ranked.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2024-06-17 12:04:09 +0200
committerTom Smeding <tom@tomsmeding.com>2024-06-17 12:04:09 +0200
commit2ca90987058d14c79cd983ab14ee57949bae2871 (patch)
tree1f81d469fbf9eba174fc0d7c40b5626123830cb8 /src/Data/Array/Nested/Internal/Ranked.hs
parent63b60c06674127e96cebfc3f1e8710f31df379d7 (diff)
Generalise some of the lifting functions to type-changing
Diffstat (limited to 'src/Data/Array/Nested/Internal/Ranked.hs')
-rw-r--r--src/Data/Array/Nested/Internal/Ranked.hs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Data/Array/Nested/Internal/Ranked.hs b/src/Data/Array/Nested/Internal/Ranked.hs
index e59ac0c..bd37e7a 100644
--- a/src/Data/Array/Nested/Internal/Ranked.hs
+++ b/src/Data/Array/Nested/Internal/Ranked.hs
@@ -180,14 +180,14 @@ instance (KnownNat n, KnownElt a) => KnownElt (Ranked n a) where
= MV_Ranked <$> mvecsNewEmpty (Proxy @(Mixed (Replicate n Nothing) a))
-arithPromoteRanked :: forall n a. PrimElt a
- => (forall sh. Mixed sh a -> Mixed sh a)
- -> Ranked n a -> Ranked n a
+arithPromoteRanked :: forall n a b.
+ (forall sh. Mixed sh a -> Mixed sh b)
+ -> Ranked n a -> Ranked n b
arithPromoteRanked = coerce
-arithPromoteRanked2 :: forall n a. PrimElt a
- => (forall sh. Mixed sh a -> Mixed sh a -> Mixed sh a)
- -> Ranked n a -> Ranked n a -> Ranked n a
+arithPromoteRanked2 :: forall n a b c.
+ (forall sh. Mixed sh a -> Mixed sh b -> Mixed sh c)
+ -> Ranked n a -> Ranked n b -> Ranked n c
arithPromoteRanked2 = coerce
instance (NumElt a, PrimElt a, Num a) => Num (Ranked n a) where