From d3b5d9259dd9f0650d51447d7f57ed6d782dfdeb Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 17 Oct 2012 12:40:38 -0400 Subject: [PATCH] Require Vector instances to be instances of Num as well. --- src/Vector.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Vector.hs b/src/Vector.hs index e608a50..97bb5d8 100644 --- a/src/Vector.hs +++ b/src/Vector.hs @@ -7,7 +7,7 @@ where import Data.Number.BigFloat -class Vector a where +class (Num a) => Vector a where norm :: RealFrac b => a -> b -- Define instances for common numeric types. -- 2.43.2