From: Michael Orlitzky Date: Thu, 27 Oct 2011 13:19:10 +0000 (-0400) Subject: Comment some test-only functions. X-Git-Tag: 0.0.1~75 X-Git-Url: http://gitweb.michael.orlitzky.com/?p=spline3.git;a=commitdiff_plain;h=3228e541540bf785d95bbdbfe4a44c486182e45e Comment some test-only functions. --- diff --git a/src/Misc.hs b/src/Misc.hs index 4b285e4..b9322ef 100644 --- a/src/Misc.hs +++ b/src/Misc.hs @@ -60,6 +60,9 @@ transpose_xz m = -- | Takes a list, and returns True if its elements are pairwise -- equal. Returns False otherwise. +-- +-- Only used in tests. +-- all_equal :: (Eq a) => [a] -> Bool all_equal xs = all (== first_element) other_elements @@ -82,6 +85,8 @@ all_equal xs = -- >>> disjoint xs ys -- False -- +-- Only used in tests. +-- disjoint :: (Eq a) => V.Vector a -> V.Vector a -> Bool disjoint xs ys = intersect xs ys == V.empty