We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent befee6b commit 69d9d2cCopy full SHA for 69d9d2c
containers/src/Data/Graph.hs
@@ -266,7 +266,8 @@ flattenSCCs = concatMap flattenSCC
266
-- 'flattenSCC1' has the more precise type.
267
flattenSCC :: SCC vertex -> [vertex]
268
flattenSCC (AcyclicSCC v) = [v]
269
-flattenSCC (NECyclicSCC vs) = NE.toList vs
+flattenSCC (NECyclicSCC (v :| vs)) = v : vs
270
+-- Note: Best to avoid NE.toList, it is too lazy.
271
272
-- | The vertices of a strongly connected component.
273
--
0 commit comments