X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Futils%2FDigraph.lhs;fp=ghc%2Fcompiler%2Futils%2FDigraph.lhs;h=f09d465bc259cdb65a0d5d40e0365d4e821b8db4;hb=6c393867f02f2f7482a0431d4abb8d998ef88dc5;hp=0dfc585c2d994af9f71e3fe720ed0a1fdf89d80d;hpb=8fca9cbab81a300bcebab360e24cf4aa590f515d;p=ghc-hetmet.git diff --git a/ghc/compiler/utils/Digraph.lhs b/ghc/compiler/utils/Digraph.lhs index 0dfc585..f09d465 100644 --- a/ghc/compiler/utils/Digraph.lhs +++ b/ghc/compiler/utils/Digraph.lhs @@ -118,11 +118,7 @@ mapT :: (Vertex -> a -> b) -> Table a -> Table b mapT f t = array (bounds t) [ (,) v (f v (t!v)) | v <- indices t ] buildG :: Bounds -> [Edge] -> Graph -#ifdef REALLY_HASKELL_1_3 buildG bounds edges = accumArray (flip (:)) [] bounds edges -#else -buildG bounds edges = accumArray (flip (:)) [] bounds [(,) k v | (k,v) <- edges] -#endif transposeG :: Graph -> Graph transposeG g = buildG (bounds g) (reverseE g)