From 0f0b526442cc97fa76772b88270eecf644d79326 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Tue, 12 Nov 2024 11:47:11 +0100 Subject: Make fromInteger error for all array types They made no sense anyway, and horde-ad should now not use them any more --- src/Data/Array/Nested/Internal/Ranked.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Data/Array/Nested/Internal/Ranked.hs') diff --git a/src/Data/Array/Nested/Internal/Ranked.hs b/src/Data/Array/Nested/Internal/Ranked.hs index e5ed3af..39a6018 100644 --- a/src/Data/Array/Nested/Internal/Ranked.hs +++ b/src/Data/Array/Nested/Internal/Ranked.hs @@ -197,7 +197,7 @@ instance (NumElt a, PrimElt a, Num a) => Num (Ranked n a) where negate = arithPromoteRanked negate abs = arithPromoteRanked abs signum = arithPromoteRanked signum - fromInteger = Ranked . fromInteger + fromInteger = error "Ranked(fromInteger): Cannot implement fromInteger, use rreplicateScal" instance (FloatElt a, NumElt a, PrimElt a, Num a) => Fractional (Ranked n a) where fromRational _ = error "Data.Array.Nested.fromRational: No singletons available, use explicit rreplicateScal" -- cgit v1.2.3-70-g09d2