We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c762ec1 commit 216e277Copy full SHA for 216e277
src/Autotool/Data/Relation.hs
@@ -48,5 +48,8 @@ transitiveClosure r = unions $ uniques (r : unfoldr mkTransitive r)
48
in if r'' == r' || null r''
49
then Nothing
50
else Just (r'',r'')
51
+ uniques [] = []
52
uniques xs = go [] xs
- where go ys (x:xs) = if x `elem` ys then ys else go (x:ys) xs
53
+ where
54
+ go ys [] = ys
55
+ go ys (x:xs) = if x `elem` ys then ys else go (x:ys) xs
0 commit comments