]> gitweb.michael.orlitzky.com - numerical-analysis.git/blobdiff - src/Vector.hs
Require Vector instances to be instances of Num as well.
[numerical-analysis.git] / src / Vector.hs
index e608a509c505a35f1294618f5d83924a57d0ec30..97bb5d8aea2c94a8100ed981bff988d6a9df60ab 100644 (file)
@@ -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.