From: sof Date: Sun, 24 Jan 1999 14:44:01 +0000 (+0000) Subject: [project @ 1999-01-24 14:44:00 by sof] X-Git-Tag: Approximately_9120_patches~6697 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=dd52974ed63dc16f298dba0c8bcb10ec88b96f98;p=ghc-hetmet.git [project @ 1999-01-24 14:44:00 by sof] Moved ST <--> IO coercion functions from IOExts to ST (and LazyST) docs. --- diff --git a/ghc/docs/libraries/IOExts.sgml b/ghc/docs/libraries/IOExts.sgml index b2d1ddd..2af0789 100644 --- a/ghc/docs/libraries/IOExts.sgml +++ b/ghc/docs/libraries/IOExts.sgml @@ -58,12 +58,6 @@ simplified memoisation function: > return a - -Operations for coercing an @@ -98,7 +92,5 @@ performGC :: IO () trace :: String -> a -> a unsafePtrEq :: a -> a -> Bool -unsafeIOToST :: IO a -> ST s a -stToIO :: ST s a -> IO a diff --git a/ghc/docs/libraries/ST.sgml b/ghc/docs/libraries/ST.sgml index 1fdd760..3be2067 100644 --- a/ghc/docs/libraries/ST.sgml +++ b/ghc/docs/libraries/ST.sgml @@ -37,6 +37,9 @@ thawSTArray :: Ix ix => Array ix elt -> ST s (STArray s ix elt) freezeSTArray :: Ix ix => STArray s ix elt -> ST s (Array ix elt) unsafeFreezeSTArray :: Ix ix => STArray s ix elt -> ST s (Array ix elt) instance Eq (STArray s ix elt) + +unsafeIOToST :: IO a -> ST s a +stToIO :: ST s a -> IO a Notes: @@ -53,12 +56,6 @@ operation -In the current version of Hugs, the Note that it is possible to install Hugs 1.4 without support for lazy @@ -76,4 +73,10 @@ places where it matters. GHC implements LazyST and ST using different types, so this isn't possible. + +Operations for coercing an