summaryrefslogtreecommitdiff
path: root/compiler/utils/Digraph.lhs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-04-06 00:11:37 +0000
committerIan Lynagh <igloo@earth.li>2007-04-06 00:11:37 +0000
commit317fc69d18eda68fd65f5ba634feafbe4a3923da (patch)
treef74410483a691cd8c1f2e5d5e4f319ada585dc60 /compiler/utils/Digraph.lhs
parent0d126b9c0dc9299a860fc6bb0e1dee05eb583de2 (diff)
downloadhaskell-317fc69d18eda68fd65f5ba634feafbe4a3923da.tar.gz
Remove code that is dead, as we require __GLASGOW_HASKELL__ >= 504
Diffstat (limited to 'compiler/utils/Digraph.lhs')
-rw-r--r--compiler/utils/Digraph.lhs17
1 files changed, 3 insertions, 14 deletions
diff --git a/compiler/utils/Digraph.lhs b/compiler/utils/Digraph.lhs
index 669f718b43..9129d9d929 100644
--- a/compiler/utils/Digraph.lhs
+++ b/compiler/utils/Digraph.lhs
@@ -252,27 +252,16 @@ draw (Node x ts) = grp this (space (length this)) (stLoop ts)
%************************************************************************
\begin{code}
-#if __GLASGOW_HASKELL__ >= 504
-newSTArray :: Ix i => (i,i) -> e -> ST s (STArray s i e)
-newSTArray = newArray
-
-readSTArray :: Ix i => STArray s i e -> i -> ST s e
-readSTArray = readArray
-
-writeSTArray :: Ix i => STArray s i e -> i -> e -> ST s ()
-writeSTArray = writeArray
-#endif
-
type Set s = STArray s Vertex Bool
mkEmpty :: Bounds -> ST s (Set s)
-mkEmpty bnds = newSTArray bnds False
+mkEmpty bnds = newArray bnds False
contains :: Set s -> Vertex -> ST s Bool
-contains m v = readSTArray m v
+contains m v = readArray m v
include :: Set s -> Vertex -> ST s ()
-include m v = writeSTArray m v True
+include m v = writeArray m v True
\end{code}
\begin{code}