]> 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 8b720cf193c8a94b2963e4c75f78a194cd8dd87d..54c4f72913f37611bdf81861a30af49204dc50ce 100644 (file)
@@ -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.