]> gitweb.michael.orlitzky.com - spline3.git/commitdiff
src/Misc.hs: add a type signature to eliminate polymorphism.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 5 Mar 2019 03:54:37 +0000 (22:54 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 5 Mar 2019 03:54:37 +0000 (22:54 -0500)
src/Misc.hs

index 83b439c4e503529b4dbe482a532e5c87d196f200..56d33eb43c3969ce0c9c40b5efb81582d0b888b1 100644 (file)
@@ -35,6 +35,7 @@ factorial :: Int -> Int
 factorial !n =
   go 1 n
   where
+    go :: Int -> Int -> Int
     go !acc !i
       | i <= 1    = acc
       | otherwise = go (acc * i) (i - 1)