]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - src/Point.hs
src/Point.hs: import "arbitrary" explicitly.
[spline3.git] / src / Point.hs
index 0e29d596e583786c99ca16e7a2922db4a616fdef..004b2e4498f99920971b9f36a2d3b6aa8d32dc01 100644 (file)
@@ -6,7 +6,7 @@ module Point (
   scale )
 where
 
-import Test.QuickCheck ( Arbitrary(..) )
+import Test.Tasty.QuickCheck ( Arbitrary( arbitrary ) )
 
 
 -- | Represents a point in three dimensions. We use a custom type (as
@@ -32,7 +32,7 @@ instance Num Point where
   fromInteger n =
     Point coord coord coord
     where
-      coord = fromInteger n
+      coord = fromInteger n :: Double
 
 
 -- | Scale a point by a constant.