]> gitweb.michael.orlitzky.com - spline3.git/commitdiff
src/Misc.hs: add a type annotation to avoid a monomorphism warning.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 5 Mar 2019 01:06:36 +0000 (20:06 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 5 Mar 2019 01:06:36 +0000 (20:06 -0500)
src/Misc.hs

index e6cd07ea987cbfb38a621b2b10c6afe6f3d329e6..83b439c4e503529b4dbe482a532e5c87d196f200 100644 (file)
@@ -110,7 +110,7 @@ test_flatten1 =
     assertEqual "flatten actually works" expected_list actual_list
     where
       target = [[[1::Int]], [[2, 3]]]
-      expected_list = [1, 2, 3]
+      expected_list = [1, 2, 3] :: [Int]
       actual_list = flatten target