From b73fc0c7e52b92eb66e610f072b224f928df0a4e Mon Sep 17 00:00:00 2001 From: Maxim Baz Date: Sat, 28 Feb 2015 19:14:47 +0100 Subject: GHC 7.11 cannot deduce Fractional and Element instances --- packages/base/src/Data/Packed/Internal/Numeric.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/base/src/Data') diff --git a/packages/base/src/Data/Packed/Internal/Numeric.hs b/packages/base/src/Data/Packed/Internal/Numeric.hs index 9adc023..257ad73 100644 --- a/packages/base/src/Data/Packed/Internal/Numeric.hs +++ b/packages/base/src/Data/Packed/Internal/Numeric.hs @@ -241,7 +241,7 @@ instance Container Vector (Complex Float) --------------------------------------------------------------- -instance (Container Vector a) => Container Matrix a +instance (Fractional a, Element a, Container Vector a) => Container Matrix a where size' = size scale' x = liftMatrix (scale' x) -- cgit v1.2.3