]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - src/Point.hs
src/Point.hs: import "arbitrary" explicitly.
[spline3.git] / src / Point.hs
index a334c5c95642ae1f06dea200d03546aa82418316..004b2e4498f99920971b9f36a2d3b6aa8d32dc01 100644 (file)
@@ -3,15 +3,15 @@
 module Point (
   Point(..),
   dot,
-  scale
-  )
+  scale )
 where
 
-import Test.QuickCheck (Arbitrary(..))
+import Test.Tasty.QuickCheck ( Arbitrary( arbitrary ) )
 
 
 -- | Represents a point in three dimensions. We use a custom type (as
 --   opposed to a 3-tuple) so that we can make the coordinates strict.
+--
 data Point =
   Point !Double !Double !Double
   deriving (Eq, Show)
@@ -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.