Skip to content
Snippets Groups Projects
Commit 6c393867 authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 2000-09-05 09:13:38 by simonmar]

remove last use of REALLY_HASKELL_1_3
parent 8fca9cba
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment