]> gitweb.michael.orlitzky.com - spline3.git/commitdiff
src/Point.hs: add a type annotation to avoid a monomorphism warning.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 5 Mar 2019 01:07:28 +0000 (20:07 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 5 Mar 2019 01:07:28 +0000 (20:07 -0500)
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.