]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - src/Point.hs
src/Cardinal.hs: undo a stupid trick, to eliminate a GHC warning.
[spline3.git] / src / Point.hs
index 0e29d596e583786c99ca16e7a2922db4a616fdef..54c4f72913f37611bdf81861a30af49204dc50ce 100644 (file)
@@ -6,7 +6,7 @@ module Point (
   scale )
 where
 
-import Test.QuickCheck ( Arbitrary(..) )
+import Test.Tasty.QuickCheck ( 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.